1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2002-02-01 23:32:21 +00:00 committed by cras
parent d322b86c3d
commit bd91fbc88b

View File

@ -312,7 +312,8 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
if (g_strcasecmp(orignick, server->nick) == 0) { if (g_strcasecmp(orignick, server->nick) == 0) {
/* You changed your nick */ /* 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 */ /* changed with /NICK - keep it as wanted nick */
g_free(server->connrec->nick); g_free(server->connrec->nick);
server->connrec->nick = g_strdup(nick); server->connrec->nick = g_strdup(nick);