componentmanager: Removed disco#items hook, and reference to core.discomanager

Tue, 18 Aug 2009 12:47:37 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Tue, 18 Aug 2009 12:47:37 +0500
changeset 1705
99c9f59ed365
parent 1704
9b445d2427e2
child 1706
0e6ba1678d8e

componentmanager: Removed disco#items hook, and reference to core.discomanager

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- a/core/componentmanager.lua	Tue Aug 18 12:44:42 2009 +0500
+++ b/core/componentmanager.lua	Tue Aug 18 12:47:37 2009 +0500
@@ -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 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);
 

mercurial