mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
iconfig's caching was a bit buggy - it didn't notice if some config node was
removed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@213 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
afc4fbc223
commit
bb4d7566c2
12 changed files with 106 additions and 62 deletions
|
|
@ -35,14 +35,14 @@ void notifylist_add_config(NOTIFYLIST_REC *rec)
|
|||
if (rec->away_check)
|
||||
config_node_set_bool(node, "away_check", TRUE);
|
||||
else
|
||||
config_node_set_str(node, "away_check", NULL);
|
||||
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);
|
||||
else
|
||||
config_node_set_str(node, "idle_check_time", NULL);
|
||||
iconfig_node_set_str(node, "idle_check_time", NULL);
|
||||
|
||||
config_node_set_str(node, "ircnets", 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue