diff --git a/LibreNMS/IRCBot.php b/LibreNMS/IRCBot.php index 58c5fb4b33..92e7f19930 100644 --- a/LibreNMS/IRCBot.php +++ b/LibreNMS/IRCBot.php @@ -153,6 +153,7 @@ class IRCBot } $this->doAuth(); + $this->nickwait = 0; while (true) { foreach ($this->socket as $n => $socket) { if (! is_resource($socket) || feof($socket)) { @@ -162,7 +163,11 @@ class IRCBot } if (isset($this->tempnick)) { - $this->ircRaw('NICK ' . $this->nick); + if ($this->nickwait > 100) { + $this->ircRaw('NICK ' . $this->nick); + $this->nickwait = 0; + } + $this->nickwait += 1; } $this->getData();