updates.
[crypto.git] / apps / irssi / src / core / channels-setup.c
index ac9b1c23eb5c7ccd0b1695631cc126c9ef9f114a..62d43b2c6ac0c3abf1e9c0054672fc4a55fe3bcd 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);