From 6da38a0a5db4111cd50bdd9856c106e8d8f1e60f Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 16 Jan 2016 15:22:22 +0100 Subject: [PATCH] WHOIS: Make hide_opers_in_whois not affect opers doing whois. --- modules/m_whois.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,