Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_whois.c
index 5a46bdf33c93623b7c58316efb7d799638ff1927..4d9f5205a66b4dcc68a9f90408f2c91934b64ab2 100644 (file)
@@ -194,7 +194,8 @@ static void do_whois(struct Client* sptr, struct Client *acptr)
     if (user->away)
        send_reply(sptr, RPL_AWAY, name, user->away);
 
-    if (HasPriv(acptr, PRIV_DISPLAY) || HasPriv(sptr, PRIV_SEE_OPERS))
+    if (IsAnOper(acptr) && (HasPriv(acptr, PRIV_DISPLAY) ||
+                           HasPriv(sptr, PRIV_SEE_OPERS)))
        send_reply(sptr, RPL_WHOISOPERATOR, name);
    
     /* Hint: if your looking to add more flags to a user, eg +h, here's