diff options
author | Timo Sirainen <cras@irssi.org> | 2000-11-14 01:14:02 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-11-14 01:14:02 +0000 |
commit | 0b125e8476adf0b604360bb1291bd9a817807365 (patch) | |
tree | f35bcd9aa3607840bcbdffe32da306af92b3f8a4 /src | |
parent | 99a6645142a7dd6efd8d0386b6ad0c2b9221c393 (diff) | |
download | irssi-0b125e8476adf0b604360bb1291bd9a817807365.zip |
/NICK was broken.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@838 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/irc-commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index e99abaa9..3b57807a 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -404,8 +404,10 @@ static void cmd_nick(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item server->nick_changing = TRUE; irc_send_cmdv(server, "NICK %s", nick); + + nick = g_strdup_printf("%s :%s", nick, nick); server_redirect_event(SERVER(server), nick, 5, - "event nick", "nickchange over", 1, + "event nick", "nickchange over", 0, "event 433", "nickchange over", 1, /* 437: ircnet = target unavailable, dalnet = banned in channel, @@ -413,6 +415,7 @@ static void cmd_nick(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC *item "event 437", "nickchange over", -1, "event 432", "nickchange over", 1, "event 438", "nickchange over", 1, NULL); + g_free(nick); cmd_params_free(free_arg); } @@ -424,6 +427,7 @@ static void sig_nickchange_over(const char *data, IRC_SERVER_REC *server, server->nick_changing = FALSE; signal = g_strconcat("event ", current_server_event, NULL); + g_strdown(signal+6); signal_emit(signal, 4, data, server, nick, addr); g_free(signal); } |