--- 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