Changeset

13523:365212120b82

MUC: Fix error with nonlegacy hats.
author Aidan Epstein <aidan@jmad.org>
date Sat, 28 Sep 2024 12:38:42 -0700
parents 13522:ccd6199cc6a2
children 13524:cfc42ed3892c
files plugins/muc/hats.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/hats.lib.lua	Sat Sep 21 22:07:36 2024 +0200
+++ b/plugins/muc/hats.lib.lua	Sat Sep 28 12:38:42 2024 -0700
@@ -25,7 +25,7 @@
 			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();