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 | 409cae1fc70dbb8adfc6d554b995198d0ba477e3 (patch) | |
tree | 34dd7c08249196ffe51cd2223d287e530ff2b8e0 | |
parent | 95ffd552f0bb05d6d9b96d68441a2c357200cca7 (diff) | |
download | prosody-409cae1fc70dbb8adfc6d554b995198d0ba477e3.tar.gz prosody-409cae1fc70dbb8adfc6d554b995198d0ba477e3.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 |