]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Fix a UID leak.
authorJilles Tjoelker <redacted>
Mon, 4 Feb 2008 22:56:13 +0000 (23:56 +0100)
committerJilles Tjoelker <redacted>
Mon, 4 Feb 2008 22:56:13 +0000 (23:56 +0100)
modules/m_invite.c

index 6464ce38b1a2e9e6366a6acbdaaadde9bc79801a..be0060393ad85dc978a6a3dc3340a2e7385f849c 100644 (file)
@@ -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,