diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/channels.c | 6 | ||||
-rw-r--r-- | src/core/servers-reconnect.c | 1 |
2 files changed, 6 insertions, 1 deletions
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); |