mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
Merge pull request #570 from josephbisch/fix-issue-563
enforce check that chatnets are nodelists to handle invalid config
This commit is contained in:
commit
964f423fed
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ static void chatnet_read(CONFIG_NODE *node)
|
||||||
CHATNET_REC *rec;
|
CHATNET_REC *rec;
|
||||||
char *type;
|
char *type;
|
||||||
|
|
||||||
if (node == NULL || node->key == NULL)
|
if (node == NULL || node->key == NULL || !is_node_list(node))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
type = config_node_get_str(node, "type", NULL);
|
type = config_node_get_str(node, "type", NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue