Software /
code /
prosody
Changeset
12285:ed23bbf3b946
mod_invites_register: Load mod_register_ibr in invite only mode
This ensures that registration actually works even if allow_registration
is not enabled.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 10 Feb 2022 21:21:03 +0100 |
parents | 12284:b4424f131d5c |
children | 12286:ad88732eea51 |
files | plugins/mod_invites_register.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_invites_register.lua Thu Feb 10 20:44:45 2022 +0100 +++ b/plugins/mod_invites_register.lua Thu Feb 10 21:21:03 2022 +0100 @@ -10,6 +10,10 @@ 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();