diff options
author | Timo Sirainen <cras@irssi.org> | 2002-11-13 13:02:29 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-11-13 13:02:29 +0000 |
commit | d6c1cfa14bdb5f18ef532c56e143c114f4be4a16 (patch) | |
tree | 4fcb60024faa60a70f26b64fff96780adfb9803f | |
parent | 3e86ba6bd6e3133716ee57088d48ca2d576b05cf (diff) | |
download | irssi-d6c1cfa14bdb5f18ef532c56e143c114f4be4a16.zip |
Don't rename our nick in DCC chats when connecting to server before we know
what nick the server gave to us (ie. may not be the same as the nick we
requested).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3000 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/irc/dcc/dcc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index 9fac9ff4..9a4882e5 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -252,7 +252,7 @@ GIOChannel *dcc_connect_ip(IPADDR *ip, int port) /* Server connected - update server for DCC records that have the same server tag */ -static void sig_server_connected(IRC_SERVER_REC *server) +static void sig_connected(IRC_SERVER_REC *server) { GSList *tmp; @@ -517,7 +517,7 @@ void irc_dcc_init(void) settings_add_int("dcc", "dcc_timeout", 300); settings_add_str("dcc", "dcc_own_ip", ""); - signal_add("server connected", (SIGNAL_FUNC) sig_server_connected); + signal_add("event connected", (SIGNAL_FUNC) sig_connected); signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected); signal_add("server nick changed", (SIGNAL_FUNC) sig_server_nick_changed); signal_add("ctcp msg", (SIGNAL_FUNC) ctcp_msg); @@ -549,7 +549,7 @@ void irc_dcc_deinit(void) dcc_resume_deinit(); dcc_autoget_deinit(); - signal_remove("server connected", (SIGNAL_FUNC) sig_server_connected); + signal_remove("event connected", (SIGNAL_FUNC) sig_connected); signal_remove("server disconnected", (SIGNAL_FUNC) sig_server_disconnected); signal_remove("server nick changed", (SIGNAL_FUNC) sig_server_nick_changed); signal_remove("ctcp msg", (SIGNAL_FUNC) ctcp_msg); |