1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

script: add option script.scripts.url_force_https (closes #253)

This commit is contained in:
Sébastien Helleu
2014-11-15 18:28:34 +01:00
parent bc3c81ee4f
commit 786999b4a3
25 changed files with 4477 additions and 1457 deletions
+9
View File
@@ -85,6 +85,7 @@ struct t_config_option *script_config_scripts_cache_expire;
struct t_config_option *script_config_scripts_dir;
struct t_config_option *script_config_scripts_hold;
struct t_config_option *script_config_scripts_url;
struct t_config_option *script_config_scripts_url_force_https;
/*
@@ -705,6 +706,14 @@ script_config_init ()
N_("URL for file with list of scripts"),
NULL, 0, 0, "http://weechat.org/files/plugins.xml.gz", NULL, 0, NULL, NULL,
NULL, NULL, NULL, NULL);
script_config_scripts_url_force_https = weechat_config_new_option (
script_config_file, ptr_section,
"url_force_https", "boolean",
N_("force use of HTTPS for downloads (index and scripts); "
"you should disable this option only if you have problems with "
"the downloads"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
NULL, NULL, NULL, NULL);
return 1;
}