# HG changeset patch # User JC Brand # Date 1587564243 -7200 # Node ID 4dc57789f51b63ca7caf86df2112ea0e1f0292ee # Parent 71d04bd6caddebc696932b6cab1b18f5384f8caf Fixes #1533 Hats don't get sent out to own MUC user diff -r 71d04bd6cadd -r 4dc57789f51b plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Wed May 06 18:03:20 2020 +0200 +++ b/plugins/muc/muc.lib.lua Wed Apr 22 16:04:03 2020 +0200 @@ -312,6 +312,7 @@ 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); pr.attr.to = full_jid; pr:add_child(self_x);