whois: Fix UID leak.

The second parameter of WHOIS is always a nick.
This commit is contained in:
Jilles Tjoelker 2013-02-14 23:45:22 +01:00
parent 2db1f25df5
commit 2ebef8d925

View file

@ -189,11 +189,7 @@ do_whois(struct Client *client_p, struct Client *source_p, int parc, const char
nick++; nick++;
} }
if(MyClient(source_p))
target_p = find_named_person(nick); target_p = find_named_person(nick);
else
target_p = find_person(nick);
if(target_p != NULL) if(target_p != NULL)
{ {
if(operspy) if(operspy)