From: Jilles Tjoelker Date: Sat, 16 Jan 2016 14:22:22 +0000 (+0100) Subject: WHOIS: Make hide_opers_in_whois not affect opers doing whois. X-Git-Url: https://jfr.im/git/solanum.git/commitdiff_plain/6da38a0a5db4111cd50bdd9856c106e8d8f1e60f?ds=sidebyside WHOIS: Make hide_opers_in_whois not affect opers doing whois. --- diff --git a/modules/m_whois.c b/modules/m_whois.c index b9967fc0..aadb0e28 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -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,