1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 23:58:48 -05:00

Fix handling of missing auth.txt in the new handler

This commit is contained in:
Perttu Ahola 2012-03-30 23:12:01 +03:00
parent 462003363f
commit 29110d5428

View File

@ -1177,7 +1177,8 @@ local function read_auth_file()
local newtable = {}
local file, errmsg = io.open(minetest.auth_file_path, 'rb')
if not file then
error(minetest.auth_file_path.." could not be opened for reading: "..errmsg)
minetest.log("info", minetest.auth_file_path.." could not be opened for reading ("..errmsg.."); assuming new world")
return
end
for line in file:lines() do
if line ~= "" then