From d260c1633d242667162b84df168e93009f90d5b2 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Wed, 14 Sep 2005 18:55:27 +0000 Subject: [PATCH] Fix another miscomparison in find_ban(). git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1486 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 4 ++++ ircd/channel.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f9fe982..f95f9f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-09-14 Michael Poole + + * ircd/channel.c (find_ban): Fix the sense of another check. + 2005-09-13 Michael Poole * include/channel.h (clean_channelname): Remove prototype. diff --git a/ircd/channel.c b/ircd/channel.c index d14e04f..d4b3835 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -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) -- 2.20.1