summaryrefslogtreecommitdiff
path: root/src/plugins/script/script-config.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-02-25 08:46:41 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-02-25 08:46:41 +0100
commitb60aec975ba13d347edd3a110cbfef7699bc3cfb (patch)
tree99945fce576fe848714bdeb9486f6fdbab974c2d /src/plugins/script/script-config.c
parent87b50969722b894bebe791211b232da5ffd82082 (diff)
downloadweechat-b60aec975ba13d347edd3a110cbfef7699bc3cfb.zip
script: add control of autoload (enable/disable/toggle) (task #12393)
New option script.scripts.autoload, new options autoload/noautoload/toggleautoload for command /script, new action "A" (meta-A) on script buffer (toggle autoload).
Diffstat (limited to 'src/plugins/script/script-config.c')
-rw-r--r--src/plugins/script/script-config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/script/script-config.c b/src/plugins/script/script-config.c
index 186e9dc88..5f29dd2a5 100644
--- a/src/plugins/script/script-config.c
+++ b/src/plugins/script/script-config.c
@@ -80,6 +80,7 @@ struct t_config_option *script_config_color_text_bg_selected;
/* script config, scripts section */
+struct t_config_option *script_config_scripts_autoload;
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;
@@ -670,6 +671,13 @@ script_config_init ()
return 0;
}
+ script_config_scripts_autoload = weechat_config_new_option (
+ script_config_file, ptr_section,
+ "autoload", "boolean",
+ N_("autoload scripts installed (make a link in \"autoload\" directory "
+ "to script in parent directory"),
+ NULL, 0, 0, "on", NULL, 0,
+ NULL, NULL, NULL, NULL, NULL, NULL);
script_config_scripts_cache_expire = weechat_config_new_option (
script_config_file, ptr_section,
"cache_expire", "integer",