mirror of
https://github.com/ShadowNinja/name_restrictions.git
synced 2024-11-16 07:10:37 +01:00
Fix typos
This commit is contained in:
parent
0b74461327
commit
98af163818
6
init.lua
6
init.lua
|
@ -49,7 +49,7 @@ minetest.register_on_prejoinplayer(function(name, ip)
|
||||||
if iname:lower() == lname and iname ~= name then
|
if iname:lower() == lname and iname ~= name then
|
||||||
return "Sorry, someone else is already using this"
|
return "Sorry, someone else is already using this"
|
||||||
.." name. Please pick another name."
|
.." name. Please pick another name."
|
||||||
.." Annother posibility is that you used the"
|
.." Annother possibility is that you used the"
|
||||||
.." wrong case for your name."
|
.." wrong case for your name."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -78,7 +78,7 @@ minetest.register_chatcommand("choosecase", {
|
||||||
------------------------
|
------------------------
|
||||||
-- Anti-impersonation --
|
-- Anti-impersonation --
|
||||||
------------------------
|
------------------------
|
||||||
-- Prevents names that are too similar to annother player's name.
|
-- Prevents names that are too similar to another player's name.
|
||||||
|
|
||||||
local similar_chars = {
|
local similar_chars = {
|
||||||
-- Only A-Z, a-z, 1-9, dash, and underscore are allowed in playernames
|
-- Only A-Z, a-z, 1-9, dash, and underscore are allowed in playernames
|
||||||
|
@ -126,7 +126,7 @@ minetest.register_on_prejoinplayer(function(name, ip)
|
||||||
|
|
||||||
for authName, _ in pairs(minetest.auth_table) do
|
for authName, _ in pairs(minetest.auth_table) do
|
||||||
if authName ~= name and authName:match(re) then
|
if authName ~= name and authName:match(re) then
|
||||||
return "Your name is too similar to annother player's name."
|
return "Your name is too similar to another player's name."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user