From 5810d36e0a1b42b7ba37d327f339629b57e56e12 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 5 Jan 2016 18:55:23 -0600 Subject: [PATCH] whois: privset disclosure: we do not need to check if source user is the same as target, because they will always be opered --- modules/m_whois.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/m_whois.c b/modules/m_whois.c index 35fab921..63c6a927 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -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",