From 1552206d5c540734f05cf90fa3a124940568196b Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 11 Feb 2009 17:57:48 +0500 Subject: [PATCH] modulemanager initializes hosts[host] if it isn't already initialized when loading a module. --- core/modulemanager.lua | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2