1
0
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:
LeMagnesium 2015-06-29 21:43:49 +02:00
parent f0b0ca71fb
commit 87d374defb

View File

@ -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