aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJC Brand <jc@opkode.com>2020-04-22 16:04:03 +0200
committerJC Brand <jc@opkode.com>2020-04-22 16:04:03 +0200
commit85dbafb31a5f2cf83846edbbbeefbf0e3bb52108 (patch)
tree6e1c357d7f0e71a42c3512c8d7edb2360beb236c /plugins
parent173c10f2328323de9f88e53bfdd8bed36f597105 (diff)
downloadprosody-85dbafb31a5f2cf83846edbbbeefbf0e3bb52108.tar.gz
prosody-85dbafb31a5f2cf83846edbbbeefbf0e3bb52108.zip
Fixes #1533 Hats don't get sent out to own MUC user
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index d785a5a2..65ed8731 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -312,6 +312,7 @@ 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);
pr.attr.to = full_jid;
pr:add_child(self_x);