# HG changeset patch # User Kim Alvefur # Date 1771070271 -3600 # Node ID cdb9c2616c05e94b3caf86dd59e191d235ac888f # Parent a1df76ba4f684096c8fda84af03d3cb4894d3dbd mod_block_registrations: Enable syntax highlighting in examples diff -r a1df76ba4f68 -r cdb9c2616c05 mod_block_registrations/README.md --- a/mod_block_registrations/README.md Sat Feb 14 12:57:22 2026 +0100 +++ b/mod_block_registrations/README.md Sat Feb 14 12:57:51 2026 +0100 @@ -13,9 +13,11 @@ Enable the module as any other: - modules_enabled = { - "block_registrations"; - } +``` lua +modules_enabled = { + "block_registrations"; +} +``` You can then set some options to configure your desired policy: @@ -30,11 +32,13 @@ Some examples: - block_registrations_users = { "admin", "root", "xmpp" } - block_registrations_matching = { - "master$" -- matches anything ending with master: postmaster, hostmaster, webmaster, etc. - } - block_registrations_require = "^[a-zA-Z0-9_.-]+$" -- Allow only simple ASCII characters in usernames +``` lua +block_registrations_users = { "admin", "root", "xmpp" } +block_registrations_matching = { + "master$" -- matches anything ending with master: postmaster, hostmaster, webmaster, etc. +} +block_registrations_require = "^[a-zA-Z0-9_.-]+$" -- Allow only simple ASCII characters in usernames +``` Compatibility =============