Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 9148:a474c94d0b0a
MUC: Remove 307 status from error-kicks (fixes #939)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 08 Aug 2018 08:12:36 +0100 |
| parents | e2bf4cd6d7a3 |
| children | 11a0b32fef24 |
comparison
equal
deleted
inserted
replaced
| 9147:e2bf4cd6d7a3 | 9148:a474c94d0b0a |
|---|---|
| 372 occupant.role = nil; | 372 occupant.role = nil; |
| 373 end | 373 end |
| 374 local new_occupant = self:save_occupant(occupant); | 374 local new_occupant = self:save_occupant(occupant); |
| 375 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user";}); | 375 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user";}); |
| 376 if is_last_session then | 376 if is_last_session then |
| 377 x:tag("status", {code = "307"}):up() | 377 x:tag("status", {code = "333"}); |
| 378 :tag("status", {code = "333"}); | |
| 379 end | 378 end |
| 380 self:publicise_occupant_status(new_occupant or occupant, x); | 379 self:publicise_occupant_status(new_occupant or occupant, x); |
| 381 if is_last_session then | 380 if is_last_session then |
| 382 module:fire_event("muc-occupant-left", {room = self; nick = occupant.nick; occupant = occupant;}); | 381 module:fire_event("muc-occupant-left", {room = self; nick = occupant.nick; occupant = occupant;}); |
| 383 end | 382 end |
