aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJonas Wielicki <jonas@wielicki.name>2018-02-23 14:07:16 +0100
committerJonas Wielicki <jonas@wielicki.name>2018-02-23 14:07:16 +0100
commitdedbe4d9949425353c321c51721ae11cf1de09a1 (patch)
treeb231e920f7e0827c4a2553d2f7001a98199d5155 /plugins
parentac3bc50bddcb5b5916a60e9ec46f76a6144c8584 (diff)
downloadprosody-dedbe4d9949425353c321c51721ae11cf1de09a1.tar.gz
prosody-dedbe4d9949425353c321c51721ae11cf1de09a1.zip
MUC: Emit 333 status code on presence as per XEP-0045 1.30 (fixes #1087)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua3
1 files changed, 2 insertions, 1 deletions
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;});