aboutsummaryrefslogtreecommitdiffstats
path: root/modules/m_who.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_who.c')
-rw-r--r--modules/m_who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m_who.c b/modules/m_who.c
index 22bcce8f..9b2c1f26 100644
--- a/modules/m_who.c
+++ b/modules/m_who.c
@@ -172,7 +172,7 @@ m_who(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
}
if(*mask == '!'
- && HasPrivilege(source_p, IsChannelName(mask + 1) ? "oper:spy_channel" : "oper:spy_user"))
+ && (IsChannelName(mask + 1) ? IsOperSpyChannel(source_p) : IsOperSpyUser(source_p)))
{
mask++;
operspy = 1;