# HG changeset patch # User Matthew Wild # Date 1772118556 0 # Node ID 9bcd58e8e9f92bb976b2378ea7599d5cacb8d87f # Parent 2aeb5dcb36bf5c6988433c82f25e3583b6d74b8e MUC: Advertise hats feature on room JID (thanks Daniel) diff -r 2aeb5dcb36bf -r 9bcd58e8e9f9 plugins/muc/hats.lib.lua --- a/plugins/muc/hats.lib.lua Sat Feb 21 17:05:48 2026 +0100 +++ b/plugins/muc/hats.lib.lua Thu Feb 26 15:09:16 2026 +0000 @@ -9,6 +9,9 @@ -- Strip any hats claimed by the client (to prevent spoofing) muc_util.add_filtered_namespace(xmlns_hats); +module:hook("muc-disco#info", function(event) + event.reply:tag("feature", { var = xmlns_hats }):up(); +end); module:hook("muc-build-occupant-presence", function (event) local bare_jid = event.occupant and event.occupant.bare_jid or event.bare_jid;