diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-18 21:29:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-18 21:29:22 +0000 |
commit | cefc72bfe71f3b6d0471544070db3e7046b1ce6f (patch) | |
tree | 385b7df51a944035162337459925b1c74959bd20 | |
parent | fcb1374e40ebd2b58c1ebf957a76fa5416034431 (diff) | |
download | irssi-cefc72bfe71f3b6d0471544070db3e7046b1ce6f.zip |
Log items weren't read correctly from config
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@769 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/core/log.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/log.c b/src/core/log.c index 02238a6b..67dfb2af 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -463,11 +463,14 @@ static void log_items_read_config(CONFIG_NODE *node, LOG_REC *log) LOG_ITEM_REC *rec; GSList *tmp; char *item; - int type; + int type; for (tmp = node->value; tmp != NULL; tmp = tmp->next) { node = tmp->data; + if (node->type != NODE_TYPE_BLOCK) + continue; + item = config_node_get_str(node, "name", NULL); type = log_item_str2type(config_node_get_str(node, "type", NULL)); if (item == NULL || type == -1) @@ -477,6 +480,8 @@ static void log_items_read_config(CONFIG_NODE *node, LOG_REC *log) rec->type = type; rec->name = g_strdup(item); rec->servertag = g_strdup(config_node_get_str(node, "server", NULL)); + + log->items = g_slist_append(log->items, rec); } } |