aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-08-18 13:03:35 +0100
committerMatthew Wild <mwild1@gmail.com>2009-08-18 13:03:35 +0100
commit4b1f3c9e4ae2aaca4934660f5b5259ef46eea6f7 (patch)
treeb70a070f34bd849d2e53290b5c9c4354758ed84c /core/componentmanager.lua
parentb5d5ab2446bacedb0ba7e4509f6ea45426b8bc5a (diff)
parentdae72952d261b285282add61ba0ea9be9cdaa22a (diff)
downloadprosody-4b1f3c9e4ae2aaca4934660f5b5259ef46eea6f7.tar.gz
prosody-4b1f3c9e4ae2aaca4934660f5b5259ef46eea6f7.zip
Merge waqas with Tobias. Eww.
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua14
1 files changed, 4 insertions, 10 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index 08868236..536d1633 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -6,8 +6,6 @@
-- COPYING file in the source package for more information.
--
-
-
local prosody = prosody;
local log = require "util.logger".init("componentmanager");
local configmanager = require "core.configmanager";
@@ -25,14 +23,6 @@ local components = {};
local disco_items = require "util.multitable".new();
local NULL = {};
-require "core.discomanager".addDiscoItemsHandler("*host", function(reply, to, from, node)
- if #node == 0 and hosts[to] then
- for jid in pairs(disco_items:get(to) or NULL) do
- reply:tag("item", {jid = jid}):up();
- end
- return true;
- end
-end);
prosody.events.add_handler("server-starting", function () core_route_stanza = _G.core_route_stanza; end);
@@ -138,4 +128,8 @@ function set_component_handler(host, handler)
components[host] = handler;
end
+function get_children(host)
+ return disco_items:get(host) or NULL;
+end
+
return _M;