1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-15 23:10:31 +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 end
minetest.log("action", "[interact] Blacklist created") minetest.log("action", "[interact] Blacklist created")
end 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") minetest.log("action", "[interact] Blacklist loaded")
file:close() file:close()
end end