diff options
author | Jonas Wielicki <jonas@wielicki.name> | 2018-02-23 14:07:16 +0100 |
---|---|---|
committer | Jonas Wielicki <jonas@wielicki.name> | 2018-02-23 14:07:16 +0100 |
commit | c0763fa413fbcac2ef3c4f5cac92d218680625db (patch) | |
tree | b231e920f7e0827c4a2553d2f7001a98199d5155 /plugins/muc/muc.lib.lua | |
parent | c90d33f06acc07ee5bbacf71dd6595a4dbc3a6b9 (diff) | |
download | prosody-c0763fa413fbcac2ef3c4f5cac92d218680625db.tar.gz prosody-c0763fa413fbcac2ef3c4f5cac92d218680625db.zip |
MUC: Emit 333 status code on presence as per XEP-0045 1.30 (fixes #1087)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 3 |
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;}); |