summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-15 22:18:35 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-15 22:18:35 +0000
commitb38f4da166c3568a346a9c918fb1b6bd2f39843f (patch)
tree4b7a7a04daa9095216797769dc50dad4fe1a71b9 /src/core
parentc9fd2197e3fa2fcc02522cd80624a11c2a566b7b (diff)
downloadirssi-b38f4da166c3568a346a9c918fb1b6bd2f39843f.zip
renamed old config_node_index() to config_node_nth(). added new
config_node_index() function. added config_node_section_index() for adding/moving node to specified position in list. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2460 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/channels-setup.c2
-rw-r--r--src/core/servers-setup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/channels-setup.c b/src/core/channels-setup.c
index ac9b1c23..62d43b2c 100644
--- a/src/core/channels-setup.c
+++ b/src/core/channels-setup.c
@@ -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);
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 99f9f579..992f4e00 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -410,7 +410,7 @@ static void server_setup_save(SERVER_SETUP_REC *rec)
index = g_slist_index(setupservers, rec);
parentnode = iconfig_node_traverse("(servers", 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);