# HG changeset patch # User Matthew Wild # Date 1241298082 -3600 # Node ID a619525fed5d2b7cac43032d73d1430c7c437c61 # Parent 5b7b2d2e9a3349c406171635b2d0a456dff53e4d modulemanager: Don't load modules when modules_enable is false diff -r 5b7b2d2e9a33 -r a619525fed5d core/modulemanager.lua --- a/core/modulemanager.lua Sat May 02 20:36:20 2009 +0100 +++ b/core/modulemanager.lua Sat May 02 22:01:22 2009 +0100 @@ -53,6 +53,10 @@ -- 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");