local next = next;
local rawget = rawget;
-local tostring, print = tostring, print;
+local tostring = tostring;
-- We need this to let modules access the real global namespace
local _G = _G;
-- Load modules when a host is activated
function load_modules_for_host(host)
+ if config.get(host, "core", "modules_enable") == false then
+ return; -- Only load for hosts, not components, etc.
+ end
+
-- Load modules from global section
local modules_enabled = config.get("*", "core", "modules_enabled");
local modules_disabled = config.get(host, "core", "modules_disabled");