Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 8838:6d4b0895f76d
MUC: ensure that x/item/@jid is always a bare JID
| author | Jonas Wielicki <jonas@wielicki.name> |
|---|---|
| date | Thu, 17 May 2018 17:12:07 +0200 |
| parents | 1b10802a770e |
| children | dcd53a565c01 |
comparison
equal
deleted
inserted
replaced
| 8837:1b10802a770e | 8838:6d4b0895f76d |
|---|---|
| 1309 end | 1309 end |
| 1310 if muc_child then | 1310 if muc_child then |
| 1311 for _, item in pairs(muc_child.tags) do | 1311 for _, item in pairs(muc_child.tags) do |
| 1312 if item.name == "item" then | 1312 if item.name == "item" then |
| 1313 if from_occupant == to_occupant then | 1313 if from_occupant == to_occupant then |
| 1314 item.attr.jid = stanza.attr.to; | 1314 item.attr.jid = jid_bare(stanza.attr.to); |
| 1315 else | 1315 else |
| 1316 item.attr.jid = from_occupant.jid; | 1316 item.attr.jid = jid_bare(from_occupant.jid); |
| 1317 end | 1317 end |
| 1318 end | 1318 end |
| 1319 end | 1319 end |
| 1320 end | 1320 end |
| 1321 self:route_stanza(stanza); | 1321 self:route_stanza(stanza); |
