diff options
author | JC Brand <jc@opkode.com> | 2020-04-22 16:12:15 +0200 |
---|---|---|
committer | JC Brand <jc@opkode.com> | 2020-04-22 16:12:15 +0200 |
commit | 0de207dbbd153fe2d254c2b33a3417cd3d4a3ace (patch) | |
tree | 89e4e28f68ee16d1f561d4943f2bd95d1041e095 /plugins/muc/muc.lib.lua | |
parent | 85dbafb31a5f2cf83846edbbbeefbf0e3bb52108 (diff) | |
download | prosody-0de207dbbd153fe2d254c2b33a3417cd3d4a3ace.tar.gz prosody-0de207dbbd153fe2d254c2b33a3417cd3d4a3ace.zip |
mod_muc: let event handlers modify cloned presence
Updates #1533
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 65ed8731..2f72c9eb 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -312,8 +312,8 @@ function room_mt:publicise_occupant_status(occupant, x, nick, actor, reason, pre else -- use their own presences as templates for full_jid, pr in occupant:each_session() do - module:fire_event("muc-build-occupant-presence", { room = self, occupant = occupant, stanza = pr }); pr = st.clone(pr); + module:fire_event("muc-build-occupant-presence", { room = self, occupant = occupant, stanza = pr }); pr.attr.to = full_jid; pr:add_child(self_x); self:route_stanza(pr); |