aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-21 04:15:54 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-21 04:15:54 +0000
commit67686e41f4dc4c99c24ad8eddd49c67f6365c42b (patch)
tree886d2e8bfe3a4ce4f2fc97f75a83850f6b6e5dfb
parent69cee3aee4e9c00004b1e97ec4c6ba650c80fe9c (diff)
downloadprosody-67686e41f4dc4c99c24ad8eddd49c67f6365c42b.tar.gz
prosody-67686e41f4dc4c99c24ad8eddd49c67f6365c42b.zip
mod_pubsub: Return disco#info stanza from build_disco_info()
-rw-r--r--plugins/mod_pubsub.lua3
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)