# HG changeset patch # User Kim Alvefur # Date 1530023227 -7200 # Node ID ae84911c1441c1aaa66669c5ebbd1f7f5a3118b6 # Parent 2e45b1b47918fa31c47804fc7679a412f6adca04 MUC: Avoid sending error for unavailable presence in GC 1.0 check diff -r 2e45b1b47918 -r ae84911c1441 plugins/muc/muc.lib.lua --- 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 , possibly desynced"); origin.send(st.error_reply(stanza, "cancel", "item-not-found", "You must join the room before sending presence updates")); return true;