From 550549763f2af6869ffcc9d967652b440d60d6b6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 26 Jun 2018 16:27:07 +0200 Subject: MUC: Avoid sending error for unavailable presence in GC 1.0 check --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 , possibly desynced"); origin.send(st.error_reply(stanza, "cancel", "item-not-found", "You must join the room before sending presence updates")); return true; -- cgit v1.2.3