Software /
code /
prosody
Changeset
8527:0a3dced117f7
MUC: Emit 333 status code on presence as per XEP-0045 1.30 (fixes #1087)
author | Jonas Wielicki <jonas@wielicki.name> |
---|---|
date | Fri, 23 Feb 2018 14:07:16 +0100 |
parents | 8526:f1a46eef9df1 |
children | 8528:67311cda0625 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;});