mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
1c2be864ee
commit
0b121d3816
@ -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;
|
GSList *tmp;
|
||||||
|
|
||||||
@ -609,8 +609,7 @@ void windows_init(void)
|
|||||||
settings_add_str("lookandfeel", "window_default_level", "NONE");
|
settings_add_str("lookandfeel", "window_default_level", "NONE");
|
||||||
|
|
||||||
read_settings();
|
read_settings();
|
||||||
signal_add("server looking", (SIGNAL_FUNC) sig_server_looking);
|
signal_add("server connected", (SIGNAL_FUNC) sig_server_connected);
|
||||||
signal_add("server connected", (SIGNAL_FUNC) sig_server_looking);
|
|
||||||
signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);
|
signal_add("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);
|
||||||
signal_add("server connect failed", (SIGNAL_FUNC) sig_server_disconnected);
|
signal_add("server connect failed", (SIGNAL_FUNC) sig_server_disconnected);
|
||||||
signal_add("setup changed", (SIGNAL_FUNC) read_settings);
|
signal_add("setup changed", (SIGNAL_FUNC) read_settings);
|
||||||
@ -621,8 +620,7 @@ void windows_deinit(void)
|
|||||||
if (daytag != -1) g_source_remove(daytag);
|
if (daytag != -1) g_source_remove(daytag);
|
||||||
if (daycheck == 1) signal_remove("print text", (SIGNAL_FUNC) sig_print_text);
|
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_connected);
|
||||||
signal_remove("server connected", (SIGNAL_FUNC) sig_server_looking);
|
|
||||||
signal_remove("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);
|
signal_remove("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);
|
||||||
signal_remove("server connect failed", (SIGNAL_FUNC) sig_server_disconnected);
|
signal_remove("server connect failed", (SIGNAL_FUNC) sig_server_disconnected);
|
||||||
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
|
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
|
||||||
|
Loading…
Reference in New Issue
Block a user