core/modulemanager.lua

changeset 778
0d94b4903cc7
parent 769
9e76018c62fa
child 876
fad020cead52
--- 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

mercurial