From bd91fbc88bd604fbf5fd61b2e0aa56b35738467a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 1 Feb 2002 23:32:21 +0000 Subject: [PATCH] The "check if nick change was done with our /NICK" didn't work if this was our first nick change.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2368 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-nicklist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c index 505eaadb..33fe31ae 100644 --- a/src/irc/core/irc-nicklist.c +++ b/src/irc/core/irc-nicklist.c @@ -312,7 +312,8 @@ static void event_nick(IRC_SERVER_REC *server, const char *data, if (g_strcasecmp(orignick, server->nick) == 0) { /* You changed your nick */ - if (g_strcasecmp(server->last_nick, nick) == 0) { + if (server->last_nick != NULL && + g_strcasecmp(server->last_nick, nick) == 0) { /* changed with /NICK - keep it as wanted nick */ g_free(server->connrec->nick); server->connrec->nick = g_strdup(nick);