aboutsummaryrefslogtreecommitdiffstats
path: root/core/configmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-03-22 15:33:38 +0000
committerMatthew Wild <mwild1@gmail.com>2009-03-22 15:33:38 +0000
commitf12ca3499f562964282d02084b07854a93d59c51 (patch)
tree76b3d083af3907eca2aab737db24095e3c408314 /core/configmanager.lua
parent393cbf45ae2bd3316f9beece418d4c43f3995caf (diff)
downloadprosody-f12ca3499f562964282d02084b07854a93d59c51.tar.gz
prosody-f12ca3499f562964282d02084b07854a93d59c51.zip
core.configmanager: Make components use 'component' module by default if none specified
Diffstat (limited to 'core/configmanager.lua')
-rw-r--r--core/configmanager.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua
index f04c5575..299374ec 100644
--- a/core/configmanager.lua
+++ b/core/configmanager.lua
@@ -116,12 +116,14 @@ do
env.host = env.Host;
function env.Component(name)
+ set(name, "core", "component_module", "component");
+ -- Don't load the global modules by default
+ set(name, "core", "modules_enable", false);
+ rawset(env, "__currenthost", name);
+
return function (module)
if type(module) == "string" then
set(name, "core", "component_module", module);
- -- Don't load the global modules by default
- set(name, "core", "modules_enable", false);
- rawset(env, "__currenthost", name);
end
end
end