mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/NICK: don't bother trying to change the nick to the one you already have
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1577 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
69c864f8d5
commit
31794553e6
@ -316,6 +316,13 @@ 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;
|
||||
|
||||
if (strcmp(nick, server->nick) == 0) {
|
||||
/* don't bother trying to change the nick to the one you
|
||||
already have */
|
||||
cmd_params_free(free_arg);
|
||||
return;
|
||||
}
|
||||
|
||||
server->nick_changing = TRUE;
|
||||
irc_send_cmdv(server, "NICK %s", nick);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user