Fix a UID leak.
This commit is contained in:
parent
5aa453a47f
commit
8c39f0bf04
1 changed files with 5 additions and 1 deletions
|
@ -68,7 +68,11 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char
|
||||||
if(MyClient(source_p) && !IsFloodDone(source_p))
|
if(MyClient(source_p) && !IsFloodDone(source_p))
|
||||||
flood_endgrace(source_p);
|
flood_endgrace(source_p);
|
||||||
|
|
||||||
if((target_p = find_person(parv[1])) == NULL)
|
if(MyClient(source_p))
|
||||||
|
target_p = find_named_person(parv[1]);
|
||||||
|
else
|
||||||
|
target_p = find_person(parv[1]);
|
||||||
|
if(target_p == NULL)
|
||||||
{
|
{
|
||||||
if(!MyClient(source_p) && IsDigit(parv[1][0]))
|
if(!MyClient(source_p) && IsDigit(parv[1][0]))
|
||||||
sendto_one_numeric(source_p, ERR_NOSUCHNICK,
|
sendto_one_numeric(source_p, ERR_NOSUCHNICK,
|
||||||
|
|
Loading…
Reference in a new issue