mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +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
|
|
@ -59,18 +59,18 @@ static void ircnet_save(IRC_CHATNET_REC *rec)
|
|||
node = chatnet_save((CHATNET_REC *) rec, node);
|
||||
|
||||
if (rec->max_cmds_at_once > 0)
|
||||
config_node_set_int(node, "cmdmax", rec->max_cmds_at_once);
|
||||
iconfig_node_set_int(node, "cmdmax", rec->max_cmds_at_once);
|
||||
if (rec->cmd_queue_speed > 0)
|
||||
config_node_set_int(node, "cmdspeed", rec->cmd_queue_speed);
|
||||
iconfig_node_set_int(node, "cmdspeed", rec->cmd_queue_speed);
|
||||
|
||||
if (rec->max_kicks > 0)
|
||||
config_node_set_int(node, "max_kicks", rec->max_kicks);
|
||||
iconfig_node_set_int(node, "max_kicks", rec->max_kicks);
|
||||
if (rec->max_msgs > 0)
|
||||
config_node_set_int(node, "max_msgs", rec->max_msgs);
|
||||
iconfig_node_set_int(node, "max_msgs", rec->max_msgs);
|
||||
if (rec->max_modes > 0)
|
||||
config_node_set_int(node, "max_modes", rec->max_modes);
|
||||
iconfig_node_set_int(node, "max_modes", rec->max_modes);
|
||||
if (rec->max_whois > 0)
|
||||
config_node_set_int(node, "max_whois", rec->max_whois);
|
||||
iconfig_node_set_int(node, "max_whois", rec->max_whois);
|
||||
}
|
||||
|
||||
static void ircnet_remove(IRC_CHATNET_REC *rec)
|
||||
|
|
|
|||
|
|
@ -166,9 +166,9 @@ static void sig_server_setup_saved(IRC_SERVER_SETUP_REC *rec,
|
|||
return;
|
||||
|
||||
if (rec->max_cmds_at_once > 0)
|
||||
config_node_set_int(node, "cmds_max_at_once", rec->max_cmds_at_once);
|
||||
iconfig_node_set_int(node, "cmds_max_at_once", rec->max_cmds_at_once);
|
||||
if (rec->cmd_queue_speed > 0)
|
||||
config_node_set_int(node, "cmd_queue_speed", rec->cmd_queue_speed);
|
||||
iconfig_node_set_int(node, "cmd_queue_speed", rec->cmd_queue_speed);
|
||||
}
|
||||
|
||||
void irc_servers_setup_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue