]> jfr.im git - solanum.git/blobdiff - modules/m_whois.c
Rework oper hiding
[solanum.git] / modules / m_whois.c
index 594656ee7cae292055688ea187567a71cad4fdc4..d3384ed3e7163d86cbc059e2267f48e61e8139e9 100644 (file)
@@ -309,7 +309,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 || IsOper(source_p)))
+       if((!ConfigFileEntry.hide_opers_in_whois || IsOper(source_p)) && SeesOper(target_p, source_p))
        {
                sendto_one_numeric(source_p, RPL_WHOISOPERATOR, form_str(RPL_WHOISOPERATOR),
                                   target_p->name,