Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / core / channels-setup.c
index ac9b1c23eb5c7ccd0b1695631cc126c9ef9f114a..a61ccb5625889aa943f4202b7eb0e1bf53f24ef9 100644 (file)
@@ -38,7 +38,7 @@ static void channel_setup_save(CHANNEL_SETUP_REC *channel)
        index = g_slist_index(setupchannels, channel);
 
        parentnode = iconfig_node_traverse("(channels", TRUE);
-       node = config_node_index(parentnode, index);
+       node = config_node_nth(parentnode, index);
        if (node == NULL)
                node = config_node_section(parentnode, NULL, NODE_TYPE_BLOCK);
 
@@ -54,6 +54,8 @@ static void channel_setup_save(CHANNEL_SETUP_REC *channel)
 
 void channel_setup_create(CHANNEL_SETUP_REC *channel)
 {
+       channel->type = module_get_uniq_id("CHANNEL SETUP", 0);
+
        if (g_slist_find(setupchannels, channel) == NULL)
                setupchannels = g_slist_append(setupchannels, channel);
        channel_setup_save(channel);