Mercurial > prosody-hg
changeset 14094:9bcd58e8e9f9 13.0
MUC: Advertise hats feature on room JID (thanks Daniel)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 26 Feb 2026 15:09:16 +0000 |
| parents | 2aeb5dcb36bf |
| children | 89743a9dc3a7 48ea7a15957e |
| files | plugins/muc/hats.lib.lua |
| diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;
