# HG changeset patch # User Aidan Epstein # Date 1727552322 25200 # Node ID 365212120b822f797716077b20a06c071632904c # Parent ccd6199cc6a2110454f04a75b062957157aa0e6b MUC: Fix error with nonlegacy hats. diff -r ccd6199cc6a2 -r 365212120b82 plugins/muc/hats.lib.lua --- 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();