diff plugins/muc/register.lib.lua @ 13908:356c8ec22e9a

MUC: Add basic "GC3" participant (affiliation) list fetch RSM version currently held back until a planned restructuring of how we store affiliations in MUC. This is because RSM needs a stable ordered list, which we don't currently have.
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Jun 2025 15:17:57 +0100
parents 827a4cfd3fad
children
line wrap: on
line diff
--- a/plugins/muc/register.lib.lua	Thu Jun 26 15:13:29 2025 +0100
+++ b/plugins/muc/register.lib.lua	Thu Jun 26 15:17:57 2025 +0100
@@ -4,9 +4,10 @@
 local st = require "prosody.util.stanza";
 local dataforms = require "prosody.util.dataforms";
 
-local allow_unaffiliated = module:get_option_boolean("allow_unaffiliated_register", false);
+local gc3_mode = module:get_option_boolean("muc_enable_experimental_gc3", false);
 
-local enforce_nick = module:get_option_boolean("enforce_registered_nickname", false);
+local allow_unaffiliated = module:get_option_boolean("allow_unaffiliated_register", gc3_mode);
+local enforce_nick = module:get_option_boolean("enforce_registered_nickname", gc3_mode);
 
 -- Whether to include the current registration data as a dataform. Disabled
 -- by default currently as it hasn't been widely tested with clients.