From dda93565feb7be092cbb2b22b29f5c667da94344 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 2 May 2009 22:01:22 +0100 Subject: modulemanager: Don't load modules when modules_enable is false --- core/modulemanager.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modulemanager.lua b/core/modulemanager.lua index cc48c2f6..2cba50ac 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -53,6 +53,10 @@ local NULL = {}; -- 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"); -- cgit v1.2.3