0
0
Fork 0
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:
William Pitcock 2016-01-05 18:55:23 -06:00
parent 32d5702869
commit 5810d36e0a

View file

@ -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",