diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 20:31:28 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 20:31:28 +0500 |
commit | 7016b4e0cda4ba5a8cf14597d88180f5c67fba07 (patch) | |
tree | 12ea0c2f63a396e7d812f5188b9f3c22873e93dc /plugins/mod_disco.lua | |
parent | dc00ab5c71ec7cce068e4baeab1aba4933377391 (diff) | |
download | prosody-7016b4e0cda4ba5a8cf14597d88180f5c67fba07.tar.gz prosody-7016b4e0cda4ba5a8cf14597d88180f5c67fba07.zip |
mod_disco: Updated to use hostmanager.get_children instead of componentmanager.get_children.
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r-- | plugins/mod_disco.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua index 9fc890ee..e2885509 100644 --- a/plugins/mod_disco.lua +++ b/plugins/mod_disco.lua @@ -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 @@ module:hook("iq/host/http://jabber.org/protocol/disco#items:query", function(eve 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 |