From d6c1cfa14bdb5f18ef532c56e143c114f4be4a16 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 13 Nov 2002 13:02:29 +0000 Subject: 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 --- src/irc/dcc/dcc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/irc/dcc/dcc.c') 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); -- cgit v1.2.3