MUC: Emit 333 status code on presence as per XEP-0045 1.30 (fixes #1087)
authorJonas Wielicki <jonas@wielicki.name>
Fri, 23 Feb 2018 14:07:16 +0100
changeset 8530 0a3dced117f7
parent 8529 f1a46eef9df1
child 8531 67311cda0625
MUC: Emit 333 status code on presence as per XEP-0045 1.30 (fixes #1087)
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Fri Oct 20 05:18:58 2017 +0200
+++ b/plugins/muc/muc.lib.lua	Fri Feb 23 14:07:16 2018 +0100
@@ -371,7 +371,8 @@
 		: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;});