diff options
Diffstat (limited to 'src/core/chatnets.c')
-rw-r--r-- | src/core/chatnets.c | 8 |
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) |