Ircbot fix (#12192)

* send alert to channel, do not send channel key

* correct indentation, use spaces not tab
This commit is contained in:
RobJE
2020-10-06 21:07:49 +02:00
committed by GitHub
parent f9d1719296
commit e52531fba4

View File

@ -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