Software /
code /
prosody
Changeset
10805:d17392022cb2
mod_muc: let event handlers modify cloned presence
Updates #1533
author | JC Brand <jc@opkode.com> |
---|---|
date | Wed, 22 Apr 2020 16:12:15 +0200 |
parents | 10804:4dc57789f51b |
children | 10806:24e2b571d29a |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Wed Apr 22 16:04:03 2020 +0200 +++ b/plugins/muc/muc.lib.lua Wed Apr 22 16:12:15 2020 +0200 @@ -312,8 +312,8 @@ else -- use their own presences as templates for full_jid, pr in occupant:each_session() do + pr = st.clone(pr); module:fire_event("muc-build-occupant-presence", { room = self, occupant = occupant, stanza = pr }); - pr = st.clone(pr); pr.attr.to = full_jid; pr:add_child(self_x); self:route_stanza(pr);