Mark alerts-only user scripts

Such scripts are not even loaded when alerts are disabled
This commit is contained in:
emanuele-f 2019-12-12 18:36:41 +01:00
parent 52df5b25dc
commit e3052f4b63
35 changed files with 102 additions and 1 deletions

View file

@ -391,7 +391,6 @@ end
local function init_user_script(user_script, mod_fname, full_path, plugin, configs)
user_script.key = mod_fname
user_script.is_alert = false -- TODO fix
user_script.path = full_path
user_script.default_enabled = ternary(user_script.default_enabled == false, false, true --[[ a nil value means enabled ]])
user_script.source_path = plugins_utils.getUserScriptSourcePath(user_script.path)