diff --git a/modules/m_whois.c b/modules/m_whois.c index 63c6a927..36d1cae3 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -326,7 +326,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) GlobalSetOptions.operstring)); } - if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && IsOper(source_p)) + if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && IsOper(target_p) && IsOper(source_p)) { char buf[512]; rb_snprintf(buf, sizeof(buf), "is opered as %s, privset %s",