mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
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++;
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue