Modules now sending disco replies
[prosody.git] / core / componentmanager.lua
index 254abfe46f3353a17cffd9c0e9c9a11ac9a372e4..5b65543553639369ec08fe0afba7a72bd8d5a011 100644 (file)
@@ -27,6 +27,7 @@ function register_component(host, component)
                components[host] = component;\r
                hosts[host] = {type = "component", host = host, connected = true, s2sout = {} };\r
                log("debug", "component added: "..host);\r
+               return hosts[host];\r
        else\r
                log("error", "Attempt to set component for existing host: "..host);\r
        end\r