comparison 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
comparison
equal deleted inserted replaced
13907:827a4cfd3fad 13908:356c8ec22e9a
2 local jid_resource = require "prosody.util.jid".resource; 2 local jid_resource = require "prosody.util.jid".resource;
3 local resourceprep = require "prosody.util.encodings".stringprep.resourceprep; 3 local resourceprep = require "prosody.util.encodings".stringprep.resourceprep;
4 local st = require "prosody.util.stanza"; 4 local st = require "prosody.util.stanza";
5 local dataforms = require "prosody.util.dataforms"; 5 local dataforms = require "prosody.util.dataforms";
6 6
7 local allow_unaffiliated = module:get_option_boolean("allow_unaffiliated_register", false); 7 local gc3_mode = module:get_option_boolean("muc_enable_experimental_gc3", false);
8 8
9 local enforce_nick = module:get_option_boolean("enforce_registered_nickname", false); 9 local allow_unaffiliated = module:get_option_boolean("allow_unaffiliated_register", gc3_mode);
10 local enforce_nick = module:get_option_boolean("enforce_registered_nickname", gc3_mode);
10 11
11 -- Whether to include the current registration data as a dataform. Disabled 12 -- Whether to include the current registration data as a dataform. Disabled
12 -- by default currently as it hasn't been widely tested with clients. 13 -- by default currently as it hasn't been widely tested with clients.
13 local include_reg_form = module:get_option_boolean("muc_registration_include_form", false); 14 local include_reg_form = module:get_option_boolean("muc_registration_include_form", false);
14 15