Software /
code /
prosody
Changeset
8931:ae84911c1441
MUC: Avoid sending error for unavailable presence in GC 1.0 check
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 26 Jun 2018 16:27:07 +0200 |
parents | 8930:2e45b1b47918 |
children | 8932:12a9731aef0b |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Jun 26 02:40:06 2018 +0200 +++ b/plugins/muc/muc.lib.lua Tue Jun 26 16:27:07 2018 +0200 @@ -472,7 +472,7 @@ local orig_occupant = self:get_occupant_by_real_jid(real_jid); local muc_x = stanza:get_child("x", "http://jabber.org/protocol/muc"); - if orig_occupant == nil and not muc_x then + if orig_occupant == nil and not muc_x and stanza.attr.type == nil then module:log("debug", "Attempted join without <x>, possibly desynced"); origin.send(st.error_reply(stanza, "cancel", "item-not-found", "You must join the room before sending presence updates")); return true;