summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-13 20:28:53 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-13 20:28:53 +0000
commitebb5967a19ee6abdd70a965ff8ca127df47f136f (patch)
tree4b83ace97e2b2d855be8474612014d9af787215e /src/channel.c
parente13f9deabc82ad42abb8adf1ab8d416a764aeafc (diff)
- changed match() polarity. match() now returns 0 on match and 1 on non-match
This cleans up several places where function pointers of different matching functions like irccmp/strcmp/match are passed to other functions. - added improved collapse() to match.c git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1652 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channel.c b/src/channel.c
index 28eade6..e6b0e46 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -595,12 +595,12 @@ find_bmask(const struct Client *who, const dlink_list *const list)
{
const struct Ban *bp = ptr->data;
- if (match(bp->name, who->name) && match(bp->username, who->username))
+ if (!match(bp->name, who->name) && !match(bp->username, who->username))
{
switch (bp->type)
{
case HM_HOST:
- if (match(bp->host, who->host) || match(bp->host, who->sockhost))
+ if (!match(bp->host, who->host) || !match(bp->host, who->sockhost))
return 1;
break;
case HM_IPV4: