check for no motd line (#4200)

Fixes #4199
This commit is contained in:
Daniel Preussker
2016-08-25 08:02:10 +00:00
committed by Neil Lathwood
parent 111d967e7d
commit ec12273aa7

View File

@ -273,7 +273,7 @@ class ircbot {
return $this->irc_raw('PONG '.$ex[1]);
}
if ($ex[1] == 376 || ($ex[1] == 'MODE' && $ex[2] == $this->nick)) {
if ($ex[1] == 376 || $ex[1] == 422 || ($ex[1] == 'MODE' && $ex[2] == $this->nick)) {
if ($this->j == 2) {
$this->joinChan();
$this->j = 0;