mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
config changes, CONFIG_REC is now required parameter for
config_node_set_int/bool() and config_node_add_list() git-svn-id: http://svn.irssi.org/repos/irssi/trunk@886 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a392b41f2f
commit
0d8239e40e
12 changed files with 39 additions and 36 deletions
|
|
@ -33,19 +33,19 @@ void notifylist_add_config(NOTIFYLIST_REC *rec)
|
|||
node = config_node_section(node, rec->mask, NODE_TYPE_BLOCK);
|
||||
|
||||
if (rec->away_check)
|
||||
config_node_set_bool(node, "away_check", TRUE);
|
||||
iconfig_node_set_bool(node, "away_check", TRUE);
|
||||
else
|
||||
iconfig_node_set_str(node, "away_check", NULL);
|
||||
|
||||
if (rec->idle_check_time > 0)
|
||||
config_node_set_int(node, "idle_check_time", rec->idle_check_time/60);
|
||||
iconfig_node_set_int(node, "idle_check_time", rec->idle_check_time/60);
|
||||
else
|
||||
iconfig_node_set_str(node, "idle_check_time", NULL);
|
||||
|
||||
iconfig_node_set_str(node, "ircnets", NULL);
|
||||
if (rec->ircnets != NULL && *rec->ircnets != NULL) {
|
||||
node = config_node_section(node, "ircnets", NODE_TYPE_LIST);
|
||||
config_node_add_list(node, rec->ircnets);
|
||||
iconfig_node_add_list(node, rec->ircnets);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue