summaryrefslogtreecommitdiff
path: root/modules/m_xline.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 /modules/m_xline.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 'modules/m_xline.c')
-rw-r--r--modules/m_xline.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/m_xline.c b/modules/m_xline.c
index 037fc17..a0fcdbc 100644
--- a/modules/m_xline.c
+++ b/modules/m_xline.c
@@ -100,7 +100,7 @@ mo_xline(struct Client *client_p, struct Client *source_p,
target_server, gecos, (int)tkline_time, reason);
/* Allow ON to apply local xline as well if it matches */
- if (!match(target_server, me.name))
+ if (match(target_server, me.name))
return;
}
else
@@ -193,7 +193,7 @@ relay_xline(struct Client *source_p, char *parv[])
"XLINE %s %s %s :%s",
parv[1], parv[2], parv[3], parv[4]);
- if (!match(parv[1], me.name))
+ if (match(parv[1], me.name))
return;
if (HasFlag(source_p, FLAGS_SERVICE) || find_matching_name_conf(CONF_ULINE, source_p->servptr->name,
@@ -248,7 +248,7 @@ mo_unxline(struct Client *client_p, struct Client *source_p,
"UNXLINE %s %s", target_server, gecos);
/* Allow ON to apply local unxline as well if it matches */
- if (!match(target_server, me.name))
+ if (match(target_server, me.name))
return;
}
else
@@ -277,7 +277,7 @@ ms_unxline(struct Client *client_p, struct Client *source_p,
sendto_match_servs(source_p, parv[1], CAP_CLUSTER,
"UNXLINE %s %s", parv[1], parv[2]);
- if (!match(parv[1], me.name))
+ if (match(parv[1], me.name))
return;
if (HasFlag(source_p, FLAGS_SERVICE) || find_matching_name_conf(CONF_ULINE, source_p->servptr->name,