diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-26 16:27:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-26 16:27:07 +0200 |
commit | ea669cf6dc6cb0c52cfaa200ca55419a121b22a4 (patch) | |
tree | ca42e33454960527977b2450d1cc1268b69dd014 /plugins | |
parent | c73895f41082976be03b0b607db44842d26dce66 (diff) | |
download | prosody-ea669cf6dc6cb0c52cfaa200ca55419a121b22a4.tar.gz prosody-ea669cf6dc6cb0c52cfaa200ca55419a121b22a4.zip |
MUC: Avoid sending error for unavailable presence in GC 1.0 check
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 09cc237a..b48ee7db 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -472,7 +472,7 @@ function room_mt:handle_normal_presence(origin, stanza) 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; |