Software /
code /
prosody
Changeset
9018:73320e33762d
MUC: Send an 'gone' error instead of unavailable + <destroyed>
List discussion here:
https://mail.jabber.org/pipermail/standards/2018-July/035228.html
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Jul 2018 11:50:44 +0200 |
parents | 9017:1184f5762592 |
children | 9019:d780c10709c1 |
files | plugins/muc/mod_muc.lua |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Wed Jul 11 11:48:56 2018 +0200 +++ b/plugins/muc/mod_muc.lua Wed Jul 11 11:50:44 2018 +0200 @@ -403,11 +403,7 @@ delete_room(room); room = nil; else - local reply = st.reply(stanza) - :tag("x", {xmlns = "http://jabber.org/protocol/muc#user"}) - :tag("item", { affiliation='none', role='none' }):up() - :tag("destroy", {jid=room._data.newjid}):text(room._data.reason); - reply.attr.type = "unavailable"; + local reply = st.error_reply(stanza, "cancel", "gone", room._data.reason) event.origin.send(reply); return true; end