# HG changeset patch # User Jonas Wielicki # Date 1526569927 -7200 # Node ID 6d4b0895f76d794a9b8a3c11e8afcb51ed0051c7 # Parent 1b10802a770e86275f5f40bb2f6c09b62bfc04fa MUC: ensure that x/item/@jid is always a bare JID diff -r 1b10802a770e -r 6d4b0895f76d plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu May 17 17:11:42 2018 +0200 +++ b/plugins/muc/muc.lib.lua Thu May 17 17:12:07 2018 +0200 @@ -1311,9 +1311,9 @@ for _, item in pairs(muc_child.tags) do if item.name == "item" then if from_occupant == to_occupant then - item.attr.jid = stanza.attr.to; + item.attr.jid = jid_bare(stanza.attr.to); else - item.attr.jid = from_occupant.jid; + item.attr.jid = jid_bare(from_occupant.jid); end end end