mirror of
https://github.com/osmarks/ngircd.git
synced 2025-09-04 03:37:56 +00:00
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:
@@ -283,7 +283,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
|
|||||||
goto skip_njoin;
|
goto skip_njoin;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Channel_Join(c, channame)) {
|
if (!Channel_Join(c, channame)) {
|
||||||
/* Failed to join channel. Ooops!? */
|
/* Failed to join channel. Ooops!? */
|
||||||
Log(LOG_ALERT,
|
Log(LOG_ALERT,
|
||||||
"Failed to join client \"%s\" to channel \"%s\" (NJOIN): killing it!",
|
"Failed to join client \"%s\" to channel \"%s\" (NJOIN): killing it!",
|
||||||
|
Reference in New Issue
Block a user