diff options
author | Jonas Wielicki <jonas@wielicki.name> | 2018-05-17 17:12:07 +0200 |
---|---|---|
committer | Jonas Wielicki <jonas@wielicki.name> | 2018-05-17 17:12:07 +0200 |
commit | b6a654fdfc549d5ebf59ebe4a20fb77328313459 (patch) | |
tree | 34dd7c08249196ffe51cd2223d287e530ff2b8e0 | |
parent | 5865da240694e68e66721d95bb8be6fc3fd53c42 (diff) | |
download | prosody-b6a654fdfc549d5ebf59ebe4a20fb77328313459.tar.gz prosody-b6a654fdfc549d5ebf59ebe4a20fb77328313459.zip |
MUC: ensure that x/item/@jid is always a bare JID
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
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 |