mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #1420 from ailin-nemui/starttls-config
enable saving of -disallow_starttls
(cherry picked from commit afba148056
)
This commit is contained in:
parent
9a95edc69a
commit
f9f6341c20
@ -220,9 +220,11 @@ static void sig_server_setup_saved(IRC_SERVER_SETUP_REC *rec,
|
|||||||
iconfig_node_set_int(node, "cmd_queue_speed", rec->cmd_queue_speed);
|
iconfig_node_set_int(node, "cmd_queue_speed", rec->cmd_queue_speed);
|
||||||
if (rec->max_query_chans > 0)
|
if (rec->max_query_chans > 0)
|
||||||
iconfig_node_set_int(node, "max_query_chans", rec->max_query_chans);
|
iconfig_node_set_int(node, "max_query_chans", rec->max_query_chans);
|
||||||
if (rec->starttls != STARTTLS_NOTSET)
|
if (rec->starttls == STARTTLS_DISALLOW)
|
||||||
iconfig_node_set_bool(node, "starttls", rec->starttls);
|
iconfig_node_set_bool(node, "starttls", FALSE);
|
||||||
else
|
else if (rec->starttls == STARTTLS_ENABLED)
|
||||||
|
iconfig_node_set_bool(node, "starttls", TRUE);
|
||||||
|
else if (rec->starttls == STARTTLS_NOTSET)
|
||||||
iconfig_node_set_str(node, "starttls", NULL);
|
iconfig_node_set_str(node, "starttls", NULL);
|
||||||
if (rec->no_cap)
|
if (rec->no_cap)
|
||||||
iconfig_node_set_bool(node, "no_cap", TRUE);
|
iconfig_node_set_bool(node, "no_cap", TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user