plugins/mod_register.lua
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Mon, 29 Jun 2020 21:03:13 +0200
changeset 11017 bb010c3c8c93
parent 9612 3e44b8dc2cc0
permissions -rw-r--r--
mod_register: Add a dependency on mod_watchregistrations Spammers are a big hassle, hopefully this will make admins aware of them sooner than when they’ve already spammed a bunch.

-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--


local allow_registration = module:get_option_boolean("allow_registration", false);

if allow_registration then
	module:depends("register_ibr");
	module:depends("watchregistrations");
end

module:depends("user_account_management");