From b6a654fdfc549d5ebf59ebe4a20fb77328313459 Mon Sep 17 00:00:00 2001 From: Jonas Wielicki Date: Thu, 17 May 2018 17:12:07 +0200 Subject: MUC: ensure that x/item/@jid is always a bare JID --- plugins/muc/muc.lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/muc') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 08c563c5..31c28df9 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1311,9 +1311,9 @@ function room_mt:_route_stanza(stanza) 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 -- cgit v1.2.3