mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_invites_register: Load mod_register_ibr in invite only mode
This ensures that registration actually works even if allow_registration is not enabled.
This commit is contained in:
parent
acc0b64d3e
commit
55055315ee
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ local invite_only = module:get_option_boolean("registration_invite_only", true);
|
|||
local invites;
|
||||
if prosody.process_type == "prosody" then
|
||||
invites = module:depends("invites");
|
||||
|
||||
if invite_only then
|
||||
module:depends("register_ibr");
|
||||
end
|
||||
end
|
||||
|
||||
local legacy_invite_stream_feature = st.stanza("register", { xmlns = "urn:xmpp:invite" }):up();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue