Software /
code /
prosody
Comparison
plugins/mod_pubsub.lua @ 3949:fc4ff6db1e57
mod_pubsub: Include node in disco#items reply
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Dec 2010 23:30:47 +0000 |
parent | 3946:14239141764f |
child | 3988:a3104064e905 |
comparison
equal
deleted
inserted
replaced
3948:d0b8fa486458 | 3949:fc4ff6db1e57 |
---|---|
258 if not ok then | 258 if not ok then |
259 return origin.send(pubsub_error_reply(stanza, ret)); | 259 return origin.send(pubsub_error_reply(stanza, ret)); |
260 end | 260 end |
261 | 261 |
262 local reply = st.reply(stanza) | 262 local reply = st.reply(stanza) |
263 :tag("query", { xmlns = "http://jabber.org/protocol/disco#items" }); | 263 :tag("query", { xmlns = "http://jabber.org/protocol/disco#items", node = node }); |
264 | 264 |
265 for id, item in pairs(ret) do | 265 for id, item in pairs(ret) do |
266 reply:tag("item", { jid = module.host, name = id }):up(); | 266 reply:tag("item", { jid = module.host, name = id }):up(); |
267 end | 267 end |
268 | 268 |