summaryrefslogtreecommitdiff
path: root/src/core/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/channels.c')
-rw-r--r--src/core/channels.c6
1 files changed, 5 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");
}