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:
parent
f0b0ca71fb
commit
87d374defb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user