# HG changeset patch # User Waqas Hussain # Date 1234357068 -18000 # Node ID 0d94b4903cc7f5c486ddcd436ffa71efe9457f0e # Parent f7a87acea220730c0a3764011cf98710694c83bb modulemanager initializes hosts[host] if it isn't already initialized when loading a module. diff -r f7a87acea220 -r 0d94b4903cc7 core/modulemanager.lua --- 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