mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
add CONFIG_REC to config_node_section* APIs
this adds the CONFIG_REC * to the config_node_section and config_node_section_index APIs as they will require access to the config cache later on to make the config parser more robust.
This commit is contained in:
parent
6b08cbe906
commit
96d4fb9156
20 changed files with 62 additions and 60 deletions
|
|
@ -430,7 +430,7 @@ static void server_setup_save(SERVER_SETUP_REC *rec)
|
|||
parentnode = iconfig_node_traverse("(servers", TRUE);
|
||||
node = config_node_nth(parentnode, index);
|
||||
if (node == NULL)
|
||||
node = config_node_section(parentnode, NULL, NODE_TYPE_BLOCK);
|
||||
node = iconfig_node_section(parentnode, NULL, NODE_TYPE_BLOCK);
|
||||
|
||||
iconfig_node_clear(node);
|
||||
iconfig_node_set_str(node, "address", rec->address);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue