X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;ds=sidebyside;f=core%2Fmodulemanager.lua;h=5afe31440cb4395add4355b8f0a6bc151196df94;hb=1552206d5c540734f05cf90fa3a124940568196b;hp=12cf9ce8c6eb78131ef98fb0f733b69dc309a656;hpb=050494648150fd9b24bbdde9096582154089a252;p=prosody.git 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