aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan Epstein <aidan@jmad.org>2024-09-28 12:38:42 -0700
committerAidan Epstein <aidan@jmad.org>2024-09-28 12:38:42 -0700
commit712540db35178d8654017a4d6164ab7159a06614 (patch)
tree59a7c9234ede39a3619cde1a4cddd5c26ba08473
parent98795d0b6eb9ed15063e8699b269abc30271d106 (diff)
downloadprosody-712540db35178d8654017a4d6164ab7159a06614.tar.gz
prosody-712540db35178d8654017a4d6164ab7159a06614.zip
MUC: Fix error with nonlegacy hats.
-rw-r--r--plugins/muc/hats.lib.lua2
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();