]> jfr.im git - solanum.git/commitdiff
Don't send ERR_NICKCOLLISION to a user that will not be killed.
authorJilles Tjoelker <redacted>
Sat, 23 Mar 2013 21:57:28 +0000 (22:57 +0100)
committerJilles Tjoelker <redacted>
Sat, 23 Mar 2013 21:57:28 +0000 (22:57 +0100)
modules/core/m_nick.c

index c70f70d0ee038e3dea0369f26442e71e10e3f9b8..bb928f89b08389684d0f3f7b78f99390eda88845 100644 (file)
@@ -1025,8 +1025,8 @@ perform_nickchange_collides(struct Client *source_p, struct Client *client_p,
                        {
                                ServerStats.is_kill++;
 
-                               sendto_one_numeric(target_p, ERR_NICKCOLLISION,
-                                               form_str(ERR_NICKCOLLISION), target_p->name);
+                               sendto_one_numeric(source_p, ERR_NICKCOLLISION,
+                                               form_str(ERR_NICKCOLLISION), source_p->name);
 
                                /* kill the client issuing the nickchange */
                                kill_client_serv_butone(client_p, source_p,