From acc0b64d3e87bc09de41f3ef20146d3447361041 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 10 Feb 2022 20:44:45 +0100 Subject: mod_invites_register: Replace COMPAT hack This hack is not needed since a9c975a0f113 so can be removed when included with Prosody. --- plugins/mod_invites_register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_invites_register.lua b/plugins/mod_invites_register.lua index 07c7aa78..fa12a030 100644 --- a/plugins/mod_invites_register.lua +++ b/plugins/mod_invites_register.lua @@ -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 -- cgit v1.2.3