Update mods/other/disallowed_names/init.lua

Co-authored-by: Avyukt More <65779812+moreavy@users.noreply.github.com>
This commit is contained in:
olliy 2021-01-31 13:18:14 +05:00 committed by GitHub
parent 5abb26cb28
commit c35bd98e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ disallowed_names=minetest.deserialize(storage:get_string("disallowed_names")) or
minetest.register_on_prejoinplayer(function(name)
for k,v in pairs(disallowed_names) do
if string.find(string.lower(name),string.lower(v)) then
return "Your cannot use that username in this server, please change it and come back."
return "Your cannot use that username in this server. Please login with another username."
end
end
end)