whois: Fix UID leak.
The second parameter of WHOIS is always a nick.
This commit is contained in:
parent
2db1f25df5
commit
2ebef8d925
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue