From 2ebef8d925d3dc3ec9ecaa4cd978a25201d1c099 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 14 Feb 2013 23:45:22 +0100 Subject: [PATCH] whois: Fix UID leak. The second parameter of WHOIS is always a nick. --- modules/m_whois.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/m_whois.c b/modules/m_whois.c index f06329cd1..65b169b0f 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -189,11 +189,7 @@ do_whois(struct Client *client_p, struct Client *source_p, int parc, const char nick++; } - if(MyClient(source_p)) - target_p = find_named_person(nick); - else - target_p = find_person(nick); - + target_p = find_named_person(nick); if(target_p != NULL) { if(operspy)