0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +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)); 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",