From d9fd615dda15352a200c6635a88c5df5d0bd26d0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 11 Jul 2018 11:50:44 +0200 Subject: MUC: Send an 'gone' error instead of unavailable + List discussion here: https://mail.jabber.org/pipermail/standards/2018-July/035228.html --- plugins/muc/mod_muc.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/muc/mod_muc.lua') diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index cc0c675b..28adbbb0 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -403,11 +403,7 @@ for event_name, method in pairs { 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 -- cgit v1.2.3