mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
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));
|
||||
}
|
||||
|
||||
if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) &&
|
||||
(IsOper(source_p) || (source_p == target_p)))
|
||||
if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && IsOper(source_p))
|
||||
{
|
||||
char buf[512];
|
||||
rb_snprintf(buf, sizeof(buf), "is opered as %s, privset %s",
|
||||
|
|
Loading…
Reference in a new issue