# HG changeset patch # User Kim Alvefur # Date 1644522285 -3600 # Node ID b4424f131d5c5f2c9d7e6c3f80b5485f6891f415 # Parent b5686debb497791975077edb9ffe53c036fe3871 mod_invites_register: Replace COMPAT hack This hack is not needed since a9c975a0f113 so can be removed when included with Prosody. diff -r b5686debb497 -r b4424f131d5c plugins/mod_invites_register.lua --- a/plugins/mod_invites_register.lua Thu Feb 10 15:41:47 2022 +0100 +++ b/plugins/mod_invites_register.lua Thu Feb 10 20:44:45 2022 +0100 @@ -8,7 +8,7 @@ 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