From 015a598fa32e40c68dd87241b72e8933ec404c29 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 14 Oct 2000 01:43:05 +0000 Subject: [irc_]channels_setup_[de]init() calls were in wrong places. Reconnection forgot to join to old channels after the first reconnection try. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@744 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/channels.c | 6 +++++- src/core/servers-reconnect.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/channels.c b/src/core/channels.c index c21758af..583280af 100644 --- a/src/core/channels.c +++ b/src/core/channels.c @@ -155,7 +155,7 @@ static void event_connected(SERVER_REC *server) static int match_nick_flags(SERVER_REC *server, NICK_REC *nick, char flag) { - char *flags = server->get_nick_flags(); + const char *flags = server->get_nick_flags(); return (flag == flags[0] && nick->op) || (flag == flags[1] && (nick->voice || nick->halfop || @@ -203,11 +203,15 @@ void channel_send_autocommands(CHANNEL_REC *channel) void channels_init(void) { + channels_setup_init(); + signal_add("event connected", (SIGNAL_FUNC) event_connected); } void channels_deinit(void) { + channels_setup_deinit(); + signal_remove("event connected", (SIGNAL_FUNC) event_connected); module_uniq_destroy("CHANNEL"); } diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c index 00b3f132..54de8d38 100644 --- a/src/core/servers-reconnect.c +++ b/src/core/servers-reconnect.c @@ -115,6 +115,7 @@ server_connect_copy_skeleton(SERVER_CONNECT_REC *src) g_return_val_if_fail(dest != NULL, NULL); dest->type = module_get_uniq_id("SERVER CONNECT", 0); + dest->reconnection = src->reconnection; dest->proxy = g_strdup(src->proxy); dest->proxy_port = src->proxy_port; dest->proxy_string = g_strdup(src->proxy_string); -- cgit v1.2.3