WHOIS: Make hide_opers_in_whois not affect opers doing whois.

This commit is contained in:
Jilles Tjoelker 2016-01-16 15:22:22 +01:00
parent 103a1bfd34
commit 6da38a0a5d

View 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,