Skip to content

Commit b4cee0d

Browse files
committed
updates replacing chat notification code in a bunch of places with simpler calls to the new chatNotify function
1 parent 8d82521 commit b4cee0d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Plugin.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,7 @@ function_requirements('get_webhosting_plesk_instance');
190190
$accountId = $extra[0];
191191
} else {
192192
$event['success'] = false;
193-
getcurlpage('https://chat.is.cc/hooks/BAckHdSAoMsPieCof/CHQ3bKKo5Kh2HeHFJWDpxqBFyj2i7WZwmsLpLM7PmHK5D2fR', json_encode([
194-
'username' => 'Interesting Guy',
195-
'text' => 'Failed [Website '.$serviceClass->getId().'](https://my.interserver.net/admin/view_website?id='.$serviceClass->getId().') Activation Text:'.$error,
196-
]), [CURLOPT_HTTPHEADER => ['Content-type: application/json']]);
193+
chatNotify('Failed [Website '.$serviceClass->getId().'](https://my.interserver.net/admin/view_website?id='.$serviceClass->getId().') Activation Text:'.$error, 'int-dev');
197194
$event->stopPropagation();
198195
return;
199196
}

0 commit comments

Comments
 (0)