From 3499aa48d5d1f3fe08d0160e9212dbde3c8bb32b Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 4 Feb 2008 23:56:13 +0100 Subject: [PATCH] Fix a UID leak. --- modules/m_invite.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/m_invite.c b/modules/m_invite.c index 6464ce3..be00603 100644 --- a/modules/m_invite.c +++ b/modules/m_invite.c @@ -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)) 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])) sendto_one_numeric(source_p, ERR_NOSUCHNICK,