From 32a4306f7afef43e355d5f1a82f9ae23ecba363b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 15 Nov 2008 04:28:41 +0000 Subject: Return registered host table when registering a component --- core/componentmanager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 254abfe4..5b655435 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -27,6 +27,7 @@ function register_component(host, component) components[host] = component; hosts[host] = {type = "component", host = host, connected = true, s2sout = {} }; log("debug", "component added: "..host); + return hosts[host]; else log("error", "Attempt to set component for existing host: "..host); end -- cgit v1.2.3