summaryrefslogtreecommitdiff
path: root/contrib/m_operspy.c
diff options
context:
space:
mode:
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),