mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
Address all the points outlined in the first review
Replace G_SOURCE_REMOVE with FALSE for the compatibility sake. Zero the timeout id after g_source_remove and when exipred. Save the sasl_* options in sig_chatnet_saved().
This commit is contained in:
parent
b8d3301d34
commit
c90c7deac3
2 changed files with 27 additions and 6 deletions
|
|
@ -60,7 +60,7 @@ static void sig_chatnet_saved(IRC_CHATNET_REC *rec, CONFIG_NODE *node)
|
|||
return;
|
||||
|
||||
if (rec->usermode != NULL)
|
||||
iconfig_node_set_str(node, "usermode", rec->usermode);
|
||||
iconfig_node_set_str(node, "usermode", rec->usermode);
|
||||
|
||||
if (rec->max_cmds_at_once > 0)
|
||||
iconfig_node_set_int(node, "cmdmax", rec->max_cmds_at_once);
|
||||
|
|
@ -77,6 +77,13 @@ static void sig_chatnet_saved(IRC_CHATNET_REC *rec, CONFIG_NODE *node)
|
|||
iconfig_node_set_int(node, "max_modes", rec->max_modes);
|
||||
if (rec->max_whois > 0)
|
||||
iconfig_node_set_int(node, "max_whois", rec->max_whois);
|
||||
|
||||
if (rec->sasl_mechanism != NULL)
|
||||
iconfig_node_set_str(node, "sasl_mechanism", rec->sasl_mechanism);
|
||||
if (rec->sasl_username != NULL)
|
||||
iconfig_node_set_str(node, "sasl_username", rec->sasl_username);
|
||||
if (rec->sasl_password != NULL)
|
||||
iconfig_node_set_str(node, "sasl_password", rec->sasl_password);
|
||||
}
|
||||
|
||||
static void sig_chatnet_destroyed(IRC_CHATNET_REC *rec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue