Software /
code /
prosody
Diff
core/modulemanager.lua @ 778:0d94b4903cc7
modulemanager initializes hosts[host] if it isn't already initialized when loading a module.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 11 Feb 2009 17:57:48 +0500 |
parent | 769:9e76018c62fa |
child | 876:fad020cead52 |
line wrap: on
line diff
--- a/core/modulemanager.lua Wed Feb 11 17:56:42 2009 +0500 +++ b/core/modulemanager.lua Wed Feb 11 17:57:48 2009 +0500 @@ -112,6 +112,7 @@ 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