diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-04 03:25:21 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-04 03:25:21 +0000 |
commit | cf376ba806431a355c29486f1250953295f880e7 (patch) | |
tree | b4da8c4b733ea4c2453761b95890dcd65e191805 /src/irc | |
parent | 0be624272c2d57e027be919428b99b2ffe15827b (diff) | |
download | irssi-cf376ba806431a355c29486f1250953295f880e7.zip |
Send "chat protocol deinit" signal when protocol is being
deinitialized. Servers and reconnections are automatically disconnected
for the protocol when it's being deinitialized.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1341 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-core.c | 2 | ||||
-rw-r--r-- | src/irc/core/irc-servers.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/irc/core/irc-core.c b/src/irc/core/irc-core.c index 6671c33a..cce9d0d7 100644 --- a/src/irc/core/irc-core.c +++ b/src/irc/core/irc-core.c @@ -111,6 +111,8 @@ void irc_core_init(void) void irc_core_deinit(void) { + signal_emit("chat protocol deinit", 1, chat_protocol_find("IRC")); + irc_log_deinit(); irc_expandos_deinit(); irc_rawlog_deinit(); diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 425552fd..82e1dd0c 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -461,11 +461,6 @@ void irc_servers_init(void) void irc_servers_deinit(void) { - while (servers != NULL) - server_disconnect(servers->data); - while (lookup_servers != NULL) - server_disconnect(lookup_servers->data); - g_source_remove(cmd_tag); signal_remove("server connect free", (SIGNAL_FUNC) sig_server_connect_free); |