changeset 12289 | ed23bbf3b946 |
parent 12288 | b4424f131d5c |
child 12333 | c980210ca095 |
--- 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();