Changeset

270:837c7f701a56

Return registered host table when registering a component
author Matthew Wild <mwild1@gmail.com>
date Sat, 15 Nov 2008 04:28:41 +0000
parents 269:3cfac0e5e6ca
children 271:396edd2f9d2e 281:826308c07627
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/componentmanager.lua	Sat Nov 15 08:38:25 2008 +0500
+++ b/core/componentmanager.lua	Sat Nov 15 04:28:41 2008 +0000
@@ -27,6 +27,7 @@
 		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