Software /
code /
prosody
Diff
core/componentmanager.lua @ 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 |
parent | 261:790cf21e2af7 |
child | 519:cccd610a0ef9 |
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