Mercurial > prosody-modules
changeset 6501:f7158c0e2202
mod_muc_auto_hats: Fix stanza construction
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 25 Mar 2026 18:52:10 +0000 |
| parents | 36b9d79e04b7 |
| children | b15601203d0d |
| files | mod_muc_auto_hats/mod_muc_auto_hats.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
