Author: beware (by Spike)
[ircu2.10.12-pk.git] / ircd / m_whois.c
index b817e3a26a6c79b48aedb2747ce64a35c37ede22..319ea1dc0f7f79d3980c0521a1a0b57bdb455e36 100644 (file)
@@ -196,8 +196,7 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc)
     if (user->away)
        send_reply(sptr, RPL_AWAY, name, user->away);
 
-    if (IsAnOper(acptr) && (HasPriv(acptr, PRIV_DISPLAY) ||
-                           HasPriv(sptr, PRIV_SEE_OPERS)))
+    if (SeeOper(sptr,acptr))
        send_reply(sptr, RPL_WHOISOPERATOR, name);
 
     if (IsAccount(acptr))