From dedbe4d9949425353c321c51721ae11cf1de09a1 Mon Sep 17 00:00:00 2001 From: Jonas Wielicki Date: Fri, 23 Feb 2018 14:07:16 +0100 Subject: MUC: Emit 333 status code on presence as per XEP-0045 1.30 (fixes #1087) --- plugins/muc/muc.lib.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 93a30ab5..c138057d 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -371,7 +371,8 @@ function room_mt:handle_kickable(origin, stanza) -- luacheck: ignore 212 :tag('status'):text(error_message)); self:save_occupant(occupant); local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user";}) - :tag("status", {code = "307"}) + :tag("status", {code = "307"}):up() + :tag("status", {code = "333"}) self:publicise_occupant_status(occupant, x); if occupant.jid == real_jid then -- Was last session module:fire_event("muc-occupant-left", {room = self; nick = occupant.nick; occupant = occupant;}); -- cgit v1.2.3