aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 990ee0c..cbf5378 100644
--- a/init.lua
+++ b/init.lua
@@ -14,3 +14,13 @@ if http then
dofile(MP .. "/webmail.lua")
mail.webmail_init(http, webmail_url, webmail_key)
end
+
+
+minetest.register_on_prejoinplayer(function(name, ip)
+ if minetest.player_exists(name) then
+ return
+ end
+ if name:match("_") then
+ return "For security reasons, underscores are banned on this server. Please choose another username!"
+ end
+end)