diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-13 20:28:53 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-13 20:28:53 +0000 |
commit | ebb5967a19ee6abdd70a965ff8ca127df47f136f (patch) | |
tree | 4b83ace97e2b2d855be8474612014d9af787215e /modules/m_stats.c | |
parent | e13f9deabc82ad42abb8adf1ab8d416a764aeafc (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_stats.c')
-rw-r--r-- | modules/m_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/m_stats.c b/modules/m_stats.c index 952a685..e90d762 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -1174,7 +1174,7 @@ parse_stats_args(int parc, char *parv[], int *doall, int *wilds) if (!irccmp(name, from)) *doall = 2; - else if (match(name, from)) + else if (!match(name, from)) *doall = 1; *wilds = has_wildcards(name); @@ -1206,7 +1206,7 @@ stats_L_list(struct Client *source_p,char *name, int doall, int wilds, !(MyConnect(source_p) && HasUMode(source_p, UMODE_OPER)) && !HasUMode(target_p, UMODE_OPER) && (target_p != source_p)) continue; - if (!doall && wilds && !match(name, target_p->name)) + if (!doall && wilds && match(name, target_p->name)) continue; if (!(doall || wilds) && irccmp(name, target_p->name)) continue; |