diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-02-11 17:57:48 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-02-11 17:57:48 +0500 |
commit | 0310a8be6e2a62ceaa30ff693a4e2947ae57d493 (patch) | |
tree | a9baa8777d1358fdfc10188b3eebcb78f91b53b8 /core/modulemanager.lua | |
parent | 3243f13045cc3d541392afbab65235bf7d77b979 (diff) | |
download | prosody-0310a8be6e2a62ceaa30ff693a4e2947ae57d493.tar.gz prosody-0310a8be6e2a62ceaa30ff693a4e2947ae57d493.zip |
modulemanager initializes hosts[host] if it isn't already initialized when loading a module.
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 1 |
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 |