diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-02 17:37:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-02 17:37:44 +0000 |
commit | 0ce3f8243eb564063c66a1b32169109af17e4081 (patch) | |
tree | 834275a5cb412c07efafc83a2f180e3cf5d697d0 /src/core/log.c | |
parent | 85b63bf5465f4cc6d2fd1472cb9e87c5b6719f63 (diff) | |
download | irssi-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/log.c')
-rw-r--r-- | src/core/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/log.c b/src/core/log.c index f88bdb0a..ccad07ca 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -473,7 +473,8 @@ static void log_items_read_config(CONFIG_NODE *node, LOG_REC *log) char *item; int type; - for (tmp = node->value; tmp != NULL; tmp = tmp->next) { + tmp = config_node_first(node->value); + for (; tmp != NULL; tmp = config_node_next(tmp)) { node = tmp->data; if (node->type != NODE_TYPE_BLOCK) @@ -516,7 +517,8 @@ static void log_read_config(void) node = iconfig_node_traverse("logs", FALSE); if (node == NULL) return; - for (tmp = node->value; tmp != NULL; tmp = tmp->next) { + tmp = config_node_first(node->value); + for (; tmp != NULL; tmp = config_node_next(tmp)) { node = tmp->data; if (node->type != NODE_TYPE_BLOCK) |