diff options
author | Aidan Epstein <aidan@jmad.org> | 2024-09-28 12:38:42 -0700 |
---|---|---|
committer | Aidan Epstein <aidan@jmad.org> | 2024-09-28 12:38:42 -0700 |
commit | 712540db35178d8654017a4d6164ab7159a06614 (patch) | |
tree | 59a7c9234ede39a3619cde1a4cddd5c26ba08473 /plugins | |
parent | 98795d0b6eb9ed15063e8699b269abc30271d106 (diff) | |
download | prosody-712540db35178d8654017a4d6164ab7159a06614.tar.gz prosody-712540db35178d8654017a4d6164ab7159a06614.zip |
MUC: Fix error with nonlegacy hats.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/hats.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/hats.lib.lua b/plugins/muc/hats.lib.lua index 492dc72c..7eb71eb4 100644 --- a/plugins/muc/hats.lib.lua +++ b/plugins/muc/hats.lib.lua @@ -25,7 +25,7 @@ module:hook("muc-build-occupant-presence", function (event) hats_el:tag("hat", { uri = hat_id, title = hat_data.title }):up(); if hats_compat then - if not hats_el then + if not legacy_hats_el then legacy_hats_el = st.stanza("hats", { xmlns = xmlns_hats_legacy }); end legacy_hats_el:tag("hat", { uri = hat_id, title = hat_data.title }):up(); |