plugins/mod_invites_register.lua
changeset 12288 b4424f131d5c
parent 12148 3e292e2a1e02
child 12289 ed23bbf3b946
--- 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