whois: bring permissions check in line with the same one in m_privs

This commit is contained in:
William Pitcock 2015-12-28 14:55:27 -06:00
parent fb01429969
commit 4d38dd60ed

View file

@ -320,7 +320,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
} }
if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) &&
(IsOperAdmin(source_p) || IsAdmin(source_p) || (source_p == target_p))) (IsOper(source_p) || (source_p == target_p)))
{ {
char buf[512]; char buf[512];
rb_snprintf(buf, sizeof(buf), "is opered as %s, privset %s", rb_snprintf(buf, sizeof(buf), "is opered as %s, privset %s",