aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-10 21:21:03 +0100
committerKim Alvefur <zash@zash.se>2022-02-10 21:21:03 +0100
commit55055315eeefbed13bdad31ce78f16ab89dc0f6b (patch)
treea2d4ddc25dad643d47b9e0b4a589e04dd329c2c5
parentacc0b64d3e87bc09de41f3ef20146d3447361041 (diff)
downloadprosody-55055315eeefbed13bdad31ce78f16ab89dc0f6b.tar.gz
prosody-55055315eeefbed13bdad31ce78f16ab89dc0f6b.zip
mod_invites_register: Load mod_register_ibr in invite only mode
This ensures that registration actually works even if allow_registration is not enabled.
-rw-r--r--plugins/mod_invites_register.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_invites_register.lua b/plugins/mod_invites_register.lua
index fa12a030..e02b5bc0 100644
--- a/plugins/mod_invites_register.lua
+++ b/plugins/mod_invites_register.lua
@@ -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();