]> jfr.im git - irc/evilnet/x3.git/commitdiff
bad_channel_ban can return -1 in addition to 0 and 1. Must check for not 1 exactly...
authorAlex Schumann <redacted>
Tue, 19 Jan 2016 05:59:53 +0000 (21:59 -0800)
committerAlex Schumann <redacted>
Tue, 19 Jan 2016 05:59:53 +0000 (21:59 -0800)
src/chanserv.c

index c7dcb962b544f07cf7c2ff6bbbd9bf338e385fd3..c0529b8409721799eccbb41313039a959cfdefd3 100644 (file)
@@ -8933,7 +8933,7 @@ handle_mode(struct chanNode *channel, struct userNode *user, const struct mod_ch
         else if((change->args[ii].mode & (MODE_REMOVE | MODE_BAN)) == MODE_BAN)
         {
             const char *ban = change->args[ii].u.hostmask;
-            if(!bad_channel_ban(channel, user, ban, NULL, NULL))
+            if(bad_channel_ban(channel, user, ban, NULL, NULL) != 1)
                 continue;
             if(!bounce)
                 bounce = mod_chanmode_alloc(change->argc + 1 - ii);