From ebb5967a19ee6abdd70a965ff8ca127df47f136f Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 13 Nov 2012 20:28:53 +0000 Subject: - 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 --- contrib/m_operspy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib/m_operspy.c') diff --git a/contrib/m_operspy.c b/contrib/m_operspy.c index 59356be..1d2d050 100644 --- a/contrib/m_operspy.c +++ b/contrib/m_operspy.c @@ -520,10 +520,10 @@ who_global(struct Client *source_p, char *mask, int server_oper) continue; 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) || - (MyClient(target_p) && match(mask, target_p->sockhost))) + !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) || + (MyClient(target_p) && !match(mask, target_p->sockhost))) { if (dlink_list_length(&target_p->channel)) { -- cgit