diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:15:54 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:15:54 +0000 |
commit | 67686e41f4dc4c99c24ad8eddd49c67f6365c42b (patch) | |
tree | 886d2e8bfe3a4ce4f2fc97f75a83850f6b6e5dfb /plugins | |
parent | 69cee3aee4e9c00004b1e97ec4c6ba650c80fe9c (diff) | |
download | prosody-67686e41f4dc4c99c24ad8eddd49c67f6365c42b.tar.gz prosody-67686e41f4dc4c99c24ad8eddd49c67f6365c42b.zip |
mod_pubsub: Return disco#info stanza from build_disco_info()
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index f26178b9..e0acfb65 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -205,10 +205,11 @@ local function add_disco_features_from_service(disco, service) end local function build_disco_info(service) - disco_info = st.stanza("query", { xmlns = "http://jabber.org/protocol/disco#info" }) + local disco_info = st.stanza("query", { xmlns = "http://jabber.org/protocol/disco#info" }) :tag("identity", { category = "pubsub", type = "service" }):up() :tag("feature", { var = "http://jabber.org/protocol/pubsub" }):up(); add_disco_features_from_service(disco_info, service); + return disco_info; end module:hook("iq-get/host/http://jabber.org/protocol/disco#info:query", function (event) |