mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 01:50:25 +01:00
Fixed blacklisting
This commit is contained in:
parent
f0b0ca71fb
commit
87d374defb
|
@ -321,7 +321,12 @@ function load_blacklist()
|
|||
end
|
||||
minetest.log("action", "[interact] Blacklist created")
|
||||
end
|
||||
interact.blacklist = minetest.deserialize(file:read())
|
||||
local line = file:read()
|
||||
if not line then
|
||||
interact.blacklist = {}
|
||||
else
|
||||
interact.blacklist = minetest.deserialize(line)
|
||||
end
|
||||
minetest.log("action", "[interact] Blacklist loaded")
|
||||
file:close()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user