Mercurial > prosody-hg
comparison plugins/muc/hats.lib.lua @ 13692:18bc411d61fe 13.0
MUC: Use new XEP namespace for hats by default
Revert with muc_hats_compat = true in the config if necessary.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 14 Feb 2025 13:08:45 +0000 |
| parents | 365212120b82 |
| children | 9bcd58e8e9f9 |
comparison
equal
deleted
inserted
replaced
| 13690:d112eac6a3dc | 13692:18bc411d61fe |
|---|---|
| 1 local st = require "prosody.util.stanza"; | 1 local st = require "prosody.util.stanza"; |
| 2 local muc_util = module:require "muc/util"; | 2 local muc_util = module:require "muc/util"; |
| 3 | 3 |
| 4 local hats_compat = module:get_option_boolean("muc_hats_compat", true); -- COMPAT for pre-XEP namespace, TODO reconsider default for next release | 4 local hats_compat = module:get_option_boolean("muc_hats_compat", false); -- COMPAT for pre-XEP namespace |
| 5 | 5 |
| 6 local xmlns_hats_legacy = "xmpp:prosody.im/protocol/hats:1"; | 6 local xmlns_hats_legacy = "xmpp:prosody.im/protocol/hats:1"; |
| 7 local xmlns_hats = "urn:xmpp:hats:0"; | 7 local xmlns_hats = "urn:xmpp:hats:0"; |
| 8 | 8 |
| 9 -- Strip any hats claimed by the client (to prevent spoofing) | 9 -- Strip any hats claimed by the client (to prevent spoofing) |
