aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-15 04:28:41 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-15 04:28:41 +0000
commit32a4306f7afef43e355d5f1a82f9ae23ecba363b (patch)
tree3bef3cddac51d984c859baa34f1a44da8c1b4e7e /core/componentmanager.lua
parent9318711f5f25a04aea6fe2fc9caa79a322a004b3 (diff)
downloadprosody-32a4306f7afef43e355d5f1a82f9ae23ecba363b.tar.gz
prosody-32a4306f7afef43e355d5f1a82f9ae23ecba363b.zip
Return registered host table when registering a component
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua1
1 files changed, 1 insertions, 0 deletions
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