1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Log items weren't read correctly from config

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@769 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-18 21:29:22 +00:00 committed by cras
parent fcb1374e40
commit cefc72bfe7

View File

@ -468,6 +468,9 @@ static void log_items_read_config(CONFIG_NODE *node, LOG_REC *log)
for (tmp = node->value; tmp != NULL; tmp = tmp->next) { for (tmp = node->value; tmp != NULL; tmp = tmp->next) {
node = tmp->data; node = tmp->data;
if (node->type != NODE_TYPE_BLOCK)
continue;
item = config_node_get_str(node, "name", NULL); item = config_node_get_str(node, "name", NULL);
type = log_item_str2type(config_node_get_str(node, "type", NULL)); type = log_item_str2type(config_node_get_str(node, "type", NULL));
if (item == NULL || type == -1) 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->type = type;
rec->name = g_strdup(item); rec->name = g_strdup(item);
rec->servertag = g_strdup(config_node_get_str(node, "server", NULL)); rec->servertag = g_strdup(config_node_get_str(node, "server", NULL));
log->items = g_slist_append(log->items, rec);
} }
} }