1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-01 23:50:22 +02:00

Now outputs an error message to the log

This commit is contained in:
Gabriel Pérez-Cerezo
2016-10-09 11:17:41 +02:00
parent d0ad9a4daf
commit d42c6d25ef

View File

@ -47,6 +47,8 @@ local function read_auth_file()
if (name and password and privilege_string) then
local privileges = core.string_to_privs(privilege_string)
newtable[name] = {password=password, privileges=privileges, last_login=last_login}
else
core.log("error", "Invalid line in "..core.auth_file_path..": "..line.."; ignoring.")
end
end
end