Fix NJOIN handler killing all clients

This bug has been introduced by commit 1e386fb7ac which had
the logic reversed :-(

Reported by "ninguno" in #ngircd, thanks a lot!
This commit is contained in:
Alexander Barton 2015-12-30 14:51:48 +01:00
parent 01e590b007
commit d90f0323e5
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
goto skip_njoin;
}
if (Channel_Join(c, channame)) {
if (!Channel_Join(c, channame)) {
/* Failed to join channel. Ooops!? */
Log(LOG_ALERT,
"Failed to join client \"%s\" to channel \"%s\" (NJOIN): killing it!",