summaryrefslogtreecommitdiff
path: root/contrib/m_operspy.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-14 11:50:55 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-14 11:50:55 +0000
commitb2a2b2dc1adca9f089c693b520978dc4dd0e70bf (patch)
treef8f5e507ca8ad28b9ea3363f073cc601d5e6c001 /contrib/m_operspy.c
parentebb5967a19ee6abdd70a965ff8ca127df47f136f (diff)
- added improved match() stolen from ircu
- fixed compile warning in m_module.c git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1653 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'contrib/m_operspy.c')
-rw-r--r--contrib/m_operspy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/m_operspy.c b/contrib/m_operspy.c
index 1d2d050..f893bb7 100644
--- a/contrib/m_operspy.c
+++ b/contrib/m_operspy.c
@@ -191,12 +191,10 @@ operspy_list(struct Client *client_p, int parc, char *parv[])
{
const struct Channel *chptr_list = ptr->data;
- if (match_chan(parv[2], chptr_list->chname))
- {
+ if (!match(parv[2], chptr_list->chname))
sendto_one(client_p, form_str(RPL_LIST), me.name, client_p->name,
chptr_list->chname, dlink_list_length(&chptr_list->members),
chptr_list->topic);
- }
}
sendto_one(client_p, form_str(RPL_LISTEND),