# HG changeset patch # User Kim Alvefur # Date 1293647059 -3600 # Node ID a3104064e90539cecc5a0807a0077fc4ea623eac # Parent 8fbf57722368d035522888d6e2bea5b716435817 mod_pubsub: Correctly wrap the list of subscriptions in a pubsub element diff -r 8fbf57722368 -r a3104064e905 plugins/mod_pubsub.lua --- a/plugins/mod_pubsub.lua Wed Dec 29 18:49:59 2010 +0500 +++ b/plugins/mod_pubsub.lua Wed Dec 29 19:24:19 2010 +0100 @@ -74,7 +74,8 @@ return origin.send(pubsub_error_reply(stanza, ret)); end local reply = st.reply(stanza) - :tag("subscriptions", { xmlns = xmlns_pubsub }); + :tag("pubsub", { xmlns = xmlns_pubsub }) + :tag("subscriptions"); for _, sub in ipairs(ret) do reply:tag("subscription", { node = sub.node, jid = sub.jid, subscription = 'subscribed' }):up(); end