summaryrefslogtreecommitdiff
path: root/src/core/chatnets.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-02 17:37:44 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-02 17:37:44 +0000
commit0ce3f8243eb564063c66a1b32169109af17e4081 (patch)
tree834275a5cb412c07efafc83a2f180e3cf5d697d0 /src/core/chatnets.c
parent85b63bf5465f4cc6d2fd1472cb9e87c5b6719f63 (diff)
downloadirssi-0ce3f8243eb564063c66a1b32169109af17e4081.zip
Comments are now allowed everywhere in config files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/chatnets.c')
-rw-r--r--src/core/chatnets.c8
1 files changed, 6 insertions, 2 deletions
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)