Comments are now allowed everywhere in config files.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-02 17:37:44 +00:00 committed by cras
commit 0ce3f8243e
14 changed files with 45 additions and 52 deletions

View file

@ -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)