Add a comment on similar name restriction

This commit is contained in:
ShadowNinja 2014-10-14 14:38:15 -04:00
parent edecfee654
commit f44f45d36e
1 changed files with 1 additions and 0 deletions

View File

@ -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 .. "[_-]*$"