mod_block_registrations: Expand default list of blocked usernames (RFC 2142)
authorMatthew Wild <mwild1@gmail.com>
Thu, 13 Oct 2022 22:51:41 +0100
changeset 5069 368bf9b06484
parent 5068 7d33178c79f2
child 5070 74145faceba2
mod_block_registrations: Expand default list of blocked usernames (RFC 2142)
mod_block_registrations/mod_block_registrations.lua
--- a/mod_block_registrations/mod_block_registrations.lua	Thu Oct 13 22:48:57 2022 +0100
+++ b/mod_block_registrations/mod_block_registrations.lua	Thu Oct 13 22:51:41 2022 +0100
@@ -1,7 +1,12 @@
 local st = require "util.stanza";
 local nodeprep = require "util.encodings".stringprep.nodeprep;
 
-local block_users = module:get_option_set("block_registrations_users", { "admin" });
+local block_users = module:get_option_set("block_registrations_users", {
+	"abuse", "admin", "administrator", "hostmaster", "info", "news",
+	"noc", "operator", "owner", "postmaster", "register", "registration",
+	"root", "security", "service", "signup", "support", "sysadmin",
+	"sysop", "system", "test", "trouble", "webmaster", "www", "xmpp",
+});
 local block_patterns = module:get_option_set("block_registrations_matching", {});
 local require_pattern = module:get_option_string("block_registrations_require");