# HG changeset patch # User Matthew Wild # Date 1774464730 0 # Node ID f7158c0e22029dbfd5d7346a9fa408edc72019c3 # Parent 36b9d79e04b71ceecba4afc5e40a5a2428b9bdf6 mod_muc_auto_hats: Fix stanza construction diff -r 36b9d79e04b7 -r f7158c0e2202 mod_muc_auto_hats/mod_muc_auto_hats.lua --- a/mod_muc_auto_hats/mod_muc_auto_hats.lua Wed Mar 25 18:47:51 2026 +0000 +++ b/mod_muc_auto_hats/mod_muc_auto_hats.lua Wed Mar 25 18:52:10 2026 +0000 @@ -27,7 +27,7 @@ local hats_el = pres:get_child("hats", "urn:xmpp:hats:0"); if not hats_el then - hats_el = st.stanza("hats", "urn:xmpp:hats:0"); + hats_el = st.stanza("hats", { xmlns = "urn:xmpp:hats:0" }); pres:add_direct_child(hats_el); end