whois: privset disclosure: we do not need to check if source user is the same as target, because they will always be opered
This commit is contained in:
parent
32d5702869
commit
5810d36e0a
1 changed files with 1 additions and 2 deletions
|
@ -326,8 +326,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
||||||
GlobalSetOptions.operstring));
|
GlobalSetOptions.operstring));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) &&
|
if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && IsOper(source_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",
|
||||||
|
|
Loading…
Reference in a new issue