aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-02-11 18:30:44 +0000
committerMatthew Wild <mwild1@gmail.com>2009-02-11 18:30:44 +0000
commit593f1c0a523ef586f3884057632eae8123066209 (patch)
treeb2b1a6350c4204f01039e31d234bf573c2ec31e7 /core/modulemanager.lua
parent0a8bd35cebf8ee3772e1f9acd5740aea8db65d25 (diff)
parent5833e92990f5035f3b4b2c8f7c3c0651b28aa23f (diff)
downloadprosody-593f1c0a523ef586f3884057632eae8123066209.tar.gz
prosody-593f1c0a523ef586f3884057632eae8123066209.zip
Merge with waqas for MUC/routing fixes
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 12cf9ce8..5afe3144 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -112,6 +112,7 @@ function load(host, module_name, config)
local pluginenv = setmetatable({ module = api_instance }, { __index = _G });
setfenv(mod, pluginenv);
+ if not hosts[host] then hosts[host] = { type = "component", host = host, connected = false, s2sout = {} }; end
local success, ret = pcall(mod);
if not success then