소스 검색

Actually get the conditional right, lol

Andy Baugh 6 년 전
부모
커밋
d2c241f01e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Cpanel/iContact/Provider/Slack.pm

+ 1 - 1
lib/Cpanel/iContact/Provider/Slack.pm

@@ -71,7 +71,7 @@ sub send {
     my $dump_hr = {
         'text'        => $subject,
     };
-    $dump_hr->{'attachments'} = [ { "text" => $message } ] if $contact_hr->{'SLACKCOMPACT'};
+    $dump_hr->{'attachments'} = [ { "text" => $message } ] if !$contact_hr->{'SLACKCOMPACT'};
     my $message_json = Cpanel::AdminBin::Serializer::Dump($dump_hr);
 
     # Send it