Mercurial > prosody-hg
diff plugins/muc/hats.lib.lua @ 13523:365212120b82
MUC: Fix error with nonlegacy hats.
| author | Aidan Epstein <aidan@jmad.org> |
|---|---|
| date | Sat, 28 Sep 2024 12:38:42 -0700 |
| parents | f9171624fd03 |
| children | 18bc411d61fe |
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();
