From f44f45d36e8d4fc5df00e7c58b332978c7398e27 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Tue, 14 Oct 2014 14:38:15 -0400 Subject: [PATCH] Add a comment on similar name restriction --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index c4ed7ba..4a8e2eb 100644 --- a/init.lua +++ b/init.lua @@ -120,6 +120,7 @@ all_chars = all_chars .. "]" minetest.register_on_prejoinplayer(function(name, ip) if exemptions[name] then return end + -- Generate a regular expression to match all similar names local re = name:gsub(all_chars, char_map) re = "^[_-]*" .. re .. "[_-]*$"