mod_invites_register: Replace COMPAT hack

This hack is not needed since a9c975a0f113 so can be removed when
included with Prosody.
This commit is contained in:
Kim Alvefur 2022-02-10 20:44:45 +01:00
parent 5ed39f2a09
commit acc0b64d3e

View file

@ -8,7 +8,7 @@ local require_encryption = module:get_option_boolean("c2s_require_encryption",
local invite_only = module:get_option_boolean("registration_invite_only", true);
local invites;
if prosody.shutdown then -- COMPAT hack to detect prosodyctl
if prosody.process_type == "prosody" then
invites = module:depends("invites");
end