From 0ce3f8243eb564063c66a1b32169109af17e4081 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 2 Feb 2002 17:37:44 +0000 Subject: Comments are now allowed everywhere in config files. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/chatnets.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/core/chatnets.c') diff --git a/src/core/chatnets.c b/src/core/chatnets.c index 62c31c98..1b1b718c 100644 --- a/src/core/chatnets.c +++ b/src/core/chatnets.c @@ -162,6 +162,7 @@ static void chatnet_read(CONFIG_NODE *node) static void read_chatnets(void) { CONFIG_NODE *node; + GSList *tmp; while (chatnets != NULL) chatnet_destroy(chatnets->data); @@ -178,8 +179,11 @@ static void read_chatnets(void) } } - if (node != NULL) - g_slist_foreach(node->value, (GFunc) chatnet_read, NULL); + if (node != NULL) { + tmp = config_node_first(node->value); + for (; tmp != NULL; tmp = config_node_next(tmp)) + chatnet_read(tmp->data); + } } void chatnets_init(void) -- cgit v1.2.3