aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 2 insertions, 2 deletions
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