]> jfr.im git - solanum.git/commitdiff
WHOIS: Make hide_opers_in_whois not affect opers doing whois.
authorJilles Tjoelker <redacted>
Sat, 16 Jan 2016 14:22:22 +0000 (15:22 +0100)
committerJilles Tjoelker <redacted>
Sat, 16 Jan 2016 14:22:50 +0000 (15:22 +0100)
modules/m_whois.c

index b9967fc00e15c2e5624d438b82013cfc533862aa..aadb0e28d66a2ffd6ce35d347722c98b664ffdd2 100644 (file)
@@ -317,7 +317,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
                sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),
                                   target_p->name, target_p->user->away);
 
-       if(IsOper(target_p) && (!ConfigFileEntry.hide_opers_in_whois || source_p == target_p))
+       if(IsOper(target_p) && (!ConfigFileEntry.hide_opers_in_whois || IsOper(source_p)))
        {
                sendto_one_numeric(source_p, RPL_WHOISOPERATOR, form_str(RPL_WHOISOPERATOR),
                                   target_p->name,