mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Ircbot fix (#12192)
* send alert to channel, do not send channel key * correct indentation, use spaces not tab
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user