From e52531fba43d75da32e11580d7ba987817f956eb Mon Sep 17 00:00:00 2001 From: RobJE Date: Tue, 6 Oct 2020 21:07:49 +0200 Subject: [PATCH] Ircbot fix (#12192) * send alert to channel, do not send channel key * correct indentation, use spaces not tab --- LibreNMS/IRCBot.php | 1 + 1 file changed, 1 insertion(+) diff --git a/LibreNMS/IRCBot.php b/LibreNMS/IRCBot.php index b0572388df..4499a60e55 100644 --- a/LibreNMS/IRCBot.php +++ b/LibreNMS/IRCBot.php @@ -292,6 +292,7 @@ class IRCBot private function sendAlert($sendto, $severity, $alert) { + $sendto = explode(' ', $sendto)[0]; $this->ircRaw('PRIVMSG ' . $sendto . ' :' . $severity . trim($alert['title'])); if ($this->config['irc_alert_short']) { // Only send the title if set to short