From 08c23ce6d4c21f7cee9be2248d0fec15c153a23a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 28 Jan 2002 05:28:25 +0000 Subject: Don't change the "wanted nick" when receiving NICK event from server, unless we did the /NICK change. This is useful with the new irc servers changing your nick to your UID instead of killing you, at reconnect time you'd get "invalid nick" when irssi would try setting the UID as your nick.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2351 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/servers.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/core') diff --git a/src/core/servers.c b/src/core/servers.c index e5aac01e..e9e37add 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -490,9 +490,7 @@ void server_connect_unref(SERVER_CONNECT_REC *conn) void server_change_nick(SERVER_REC *server, const char *nick) { - g_free(server->connrec->nick); g_free(server->nick); - server->connrec->nick = g_strdup(nick); server->nick = g_strdup(nick); signal_emit("server nick changed", 1, server); -- cgit v1.2.3