Software /
code /
prosody
Diff
core/modulemanager.lua @ 1094:a619525fed5d
modulemanager: Don't load modules when modules_enable is false
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 02 May 2009 22:01:22 +0100 |
parent | 1069:034e345c0f8d |
child | 1105:965a55db3732 |
line wrap: on
line diff
--- 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");