mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
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
This commit is contained in:
parent
a6ee439c26
commit
08c23ce6d4
4 changed files with 14 additions and 5 deletions
|
|
@ -317,6 +317,9 @@ static void cmd_nick(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item
|
|||
if (!cmd_get_params(data, &free_arg, 1, &nick))
|
||||
return;
|
||||
|
||||
g_free(server->last_nick);
|
||||
server->last_nick = g_strdup(nick);
|
||||
|
||||
irc_send_cmdv(server, "NICK %s", nick);
|
||||
cmd_params_free(free_arg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue