summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-06-04 21:18:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-06-04 21:18:32 +0000
commit0b121d3816c9a5a0f416f7b536b969924865cfe2 (patch)
tree1b2a112a87c604fc64a836ba2c8ece790b0ba6cd /src
parent1c2be864ee0e8cdfe44b9d4a05b621faca441d04 (diff)
downloadirssi-0b121d3816c9a5a0f416f7b536b969924865cfe2.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-windows.c8
1 files 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);