mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 15:30:30 +01:00
Added forbidden names list
This commit is contained in:
parent
911f49faa4
commit
989b94df71
|
@ -17,6 +17,16 @@ temp = nil
|
|||
exemptions[minetest.setting_get("name")] = true
|
||||
exemptions["singleplayer"] = true
|
||||
|
||||
local disallowed_names = {}
|
||||
local file = io.open(minetest.get_worldpath("name_restrictions") .. "/forbidden_names.txt", "r")
|
||||
if file then
|
||||
for line in file:lines() do
|
||||
local low_line = line:lower()
|
||||
disallowed_names[low_line] = true
|
||||
end
|
||||
file:close()
|
||||
end
|
||||
|
||||
---------------------
|
||||
-- Simple matching --
|
||||
---------------------
|
||||
|
@ -41,6 +51,9 @@ minetest.register_on_prejoinplayer(function(name, ip)
|
|||
return reason
|
||||
end
|
||||
end
|
||||
if disallowed_names[lname] then
|
||||
return "Sorry. This name is forbidden."
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
|
48
worlds/minetestforfun/forbidden_names.txt
Normal file
48
worlds/minetestforfun/forbidden_names.txt
Normal file
|
@ -0,0 +1,48 @@
|
|||
Siphano
|
||||
AyPierre
|
||||
Fukano
|
||||
ThomasFukano
|
||||
Azenet
|
||||
ZeratoR
|
||||
Skyyart
|
||||
Xari
|
||||
MrBboy45
|
||||
Jiraya
|
||||
Dark
|
||||
Funeral
|
||||
Daweed
|
||||
MrDaweed
|
||||
thoyy
|
||||
crafthoyy
|
||||
Tado
|
||||
Foxseen
|
||||
Shorty
|
||||
Aurelien
|
||||
AurelienSama
|
||||
Aurelien_sama
|
||||
Roi_Louis
|
||||
Talisker
|
||||
FlamingTalisker
|
||||
Kid
|
||||
R3lient
|
||||
Epee
|
||||
EpeeForte
|
||||
jaidev
|
||||
Souls
|
||||
SoulsStealer
|
||||
SoulsStealerGames
|
||||
Zephirr
|
||||
MinecraftZephirr
|
||||
Popi
|
||||
October
|
||||
Aishy
|
||||
AishyZz
|
||||
Eddytor
|
||||
Tagazok
|
||||
bxakid
|
||||
darkbxakid
|
||||
M5
|
||||
Mcuuber5
|
||||
Bardin
|
||||
Elspawn
|
||||
Bytell
|
Loading…
Reference in New Issue
Block a user