mod_disco: Updated to use hostmanager.get_children instead of componentmanager.get_children.

Wed, 10 Nov 2010 20:31:28 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 10 Nov 2010 20:31:28 +0500
changeset 3600
c888328ae6b3
parent 3599
adc0b4df6fdd
child 3601
829e23b374cc

mod_disco: Updated to use hostmanager.get_children instead of componentmanager.get_children.

plugins/mod_disco.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_disco.lua	Wed Nov 10 20:28:20 2010 +0500
+++ b/plugins/mod_disco.lua	Wed Nov 10 20:31:28 2010 +0500
@@ -6,7 +6,7 @@
 -- COPYING file in the source package for more information.
 --
 
-local componentmanager_get_children = require "core.componentmanager".get_children;
+local get_children = require "core.hostmanager".get_children;
 local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed;
 local jid_split = require "util.jid".split;
 local jid_bare = require "util.jid".bare;
@@ -101,7 +101,7 @@
 	if node and node ~= "" then return; end -- TODO fire event?
 
 	local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#items");
-	for jid in pairs(componentmanager_get_children(module.host)) do
+	for jid in pairs(get_children(module.host)) do
 		reply:tag("item", {jid = jid}):up();
 	end
 	for _, item in ipairs(disco_items) do

mercurial