# HG changeset patch # User Matthew Wild # Date 1292904954 0 # Node ID ffe5a0d36f577a2f265de58ca753050bfa62c0d7 # Parent e24fcbb01fb6ce147b5c5398f403c37db0396880 mod_pubsub: Return disco#info stanza from build_disco_info() diff -r e24fcbb01fb6 -r ffe5a0d36f57 plugins/mod_pubsub.lua --- a/plugins/mod_pubsub.lua Tue Dec 21 04:15:29 2010 +0000 +++ b/plugins/mod_pubsub.lua Tue Dec 21 04:15:54 2010 +0000 @@ -205,10 +205,11 @@ 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)