summaryrefslogtreecommitdiff
path: root/modules/m_who.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_who.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_who.c')
-rw-r--r--modules/m_who.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/m_who.c b/modules/m_who.c
index fa20fcd..a030715 100644
--- a/modules/m_who.c
+++ b/modules/m_who.c
@@ -171,11 +171,11 @@ who_common_channel(struct Client *source_p, struct Channel *chptr,
assert(target_p->servptr != NULL);
if ((mask == NULL) ||
- match(mask, target_p->name) || match(mask, target_p->username) ||
- match(mask, target_p->host) ||
+ !match(mask, target_p->name) || !match(mask, target_p->username) ||
+ !match(mask, target_p->host) ||
((!ConfigServerHide.hide_servers || HasUMode(source_p, UMODE_OPER)) &&
- match(mask, target_p->servptr->name)) ||
- match(mask, target_p->info))
+ !match(mask, target_p->servptr->name)) ||
+ !match(mask, target_p->info))
{
do_who(source_p, target_p, NULL, "");
@@ -250,9 +250,9 @@ who_global(struct Client *source_p, char *mask, int server_oper)
assert(target_p->servptr != NULL);
if (!mask ||
- match(mask, target_p->name) || match(mask, target_p->username) ||
- match(mask, target_p->host) || match(mask, target_p->servptr->name) ||
- match(mask, target_p->info))
+ !match(mask, target_p->name) || !match(mask, target_p->username) ||
+ !match(mask, target_p->host) || !match(mask, target_p->servptr->name) ||
+ !match(mask, target_p->info))
{
do_who(source_p, target_p, NULL, "");