Fix another miscomparison in find_ban().
authorMichael Poole <mdpoole@troilus.org>
Wed, 14 Sep 2005 18:55:27 +0000 (18:55 +0000)
committerMichael Poole <mdpoole@troilus.org>
Wed, 14 Sep 2005 18:55:27 +0000 (18:55 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1486 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/channel.c

index f9fe982a50bb927d2983a190998b4d5ac55d1c08..f95f9f6237c76afd43909ac66eb6f52842b3a0f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-09-14  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/channel.c (find_ban): Fix the sense of another check.
+
 2005-09-13  Michael Poole <mdpoole@troilus.org>
 
        * include/channel.h (clean_channelname): Remove prototype.
index d14e04f697aefbd9afead8553dec8e1251b4c22a..d4b383524c1ec630e39df6f5d534fc75b48c239f 100644 (file)
@@ -383,7 +383,7 @@ struct Ban *find_ban(struct Client *cptr, struct Ban *banlist)
     if (!((banlist->flags & BAN_IPMASK)
          && ipmask_check(&cli_ip(cptr), &banlist->address, banlist->addrbits))
         && match(hostmask, cli_user(cptr)->host)
-        && !(sr && match(hostmask, sr)))
+        && !(sr && !match(hostmask, sr)))
         continue;
     /* If an exception matches, no ban can match. */
     if (banlist->flags & BAN_EXCEPTION)