summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-26 03:18:24 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-26 03:18:24 +0000
commit49b7992b00fdc34fcd4684990105a9a313c82380 (patch)
treeaf6bbbbc627fb76190e068a38a89a9ca1f8efc1e /src
parent70bb51db19076a7131b38278a497c54d910f0b73 (diff)
downloadirssi-49b7992b00fdc34fcd4684990105a9a313c82380.zip
Sometimes netsplit messages didn't get printed at all (those that came
after 3 seconds after split started) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@875 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/irc/fe-netsplit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c
index 4b3a19a6..9b2312d7 100644
--- a/src/fe-common/irc/fe-netsplit.c
+++ b/src/fe-common/irc/fe-netsplit.c
@@ -251,8 +251,7 @@ static int sig_check_splits(void)
return 1;
}
-static void sig_netsplit_servers(IRC_SERVER_REC *server,
- NETSPLIT_SERVER_REC *rec)
+static void sig_netsplit_servers(void)
{
if (settings_get_bool("hide_netsplit_quits") && split_tag == -1) {
split_tag = g_timeout_add(1000,
@@ -302,7 +301,7 @@ void fe_netsplit_init(void)
split_tag = -1;
read_settings();
- signal_add("netsplit server new", (SIGNAL_FUNC) sig_netsplit_servers);
+ signal_add("netsplit add", (SIGNAL_FUNC) sig_netsplit_servers);
signal_add("setup changed", (SIGNAL_FUNC) read_settings);
command_bind("netsplit", NULL, (SIGNAL_FUNC) cmd_netsplit);
}
@@ -311,7 +310,7 @@ void fe_netsplit_deinit(void)
{
if (split_tag != -1) g_source_remove(split_tag);
- signal_remove("netsplit server new", (SIGNAL_FUNC) sig_netsplit_servers);
+ signal_remove("netsplit add", (SIGNAL_FUNC) sig_netsplit_servers);
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
command_unbind("netsplit", (SIGNAL_FUNC) cmd_netsplit);
}