From 0b121d3816c9a5a0f416f7b536b969924865cfe2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 4 Jun 2002 21:18:32 +0000 Subject: [PATCH] Don't set window's server yet at "server looking" stage, as everything isn't initialized yet and some things could crash irssi. But this is rather nice feature actually, /disconnect and /server would work nicely before server is even being connected to .. i guess i should figure out a better way to do this, "server init" signal or something. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2835 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-windows.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index bfedcaad..91153814 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -489,7 +489,7 @@ void window_bind_remove_unsticky(WINDOW_REC *window) } } -static void sig_server_looking(SERVER_REC *server) +static void sig_server_connected(SERVER_REC *server) { GSList *tmp; @@ -609,8 +609,7 @@ void windows_init(void) settings_add_str("lookandfeel", "window_default_level", "NONE"); read_settings(); - signal_add("server looking", (SIGNAL_FUNC) sig_server_looking); - signal_add("server connected", (SIGNAL_FUNC) sig_server_looking); + signal_add("server connected", (SIGNAL_FUNC) sig_server_connected); signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected); signal_add("server connect failed", (SIGNAL_FUNC) sig_server_disconnected); signal_add("setup changed", (SIGNAL_FUNC) read_settings); @@ -621,8 +620,7 @@ void windows_deinit(void) if (daytag != -1) g_source_remove(daytag); if (daycheck == 1) signal_remove("print text", (SIGNAL_FUNC) sig_print_text); - signal_remove("server looking", (SIGNAL_FUNC) sig_server_looking); - signal_remove("server connected", (SIGNAL_FUNC) sig_server_looking); + signal_remove("server connected", (SIGNAL_FUNC) sig_server_connected); signal_remove("server disconnected", (SIGNAL_FUNC) sig_server_disconnected); signal_remove("server connect failed", (SIGNAL_FUNC) sig_server_disconnected); signal_remove("setup changed", (SIGNAL_FUNC) read_settings);