Convert more messages to use Discord reporting

This commit is contained in:
Sanqui
2021-06-28 13:14:35 -07:00
parent 57185f6cda
commit 325fbe2e95
3 changed files with 17 additions and 2 deletions

View File

@@ -1335,6 +1335,17 @@ function addslashes_array($data) {
}
}
function report($type, $msg) {
if (!function_exists('get_discord_webhook')) return;
$wh_url = get_discord_webhook($type, null);
if (!$wh_url) return;
discord_send($wh_url, $outdiscord);
}
// general purpose report function, now with discord!
function xk_ircout($type, $user, $in) {
@@ -1377,8 +1388,8 @@ function addslashes_array($data) {
// logic to decide where the message goes based on info provided
if (!function_exists('get_discord_webhook')) return;
$wh_url = get_discord_webhook($type, $user, $in);
$wh_url = get_discord_webhook($type, $in);
if (!$wh_url) return;