From d42c6d25ef48a00a27be26c673f56fbd1dfcb47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Sun, 9 Oct 2016 11:17:41 +0200 Subject: [PATCH] Now outputs an error message to the log --- builtin/game/auth.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin/game/auth.lua b/builtin/game/auth.lua index 3ca7336f1..3e09f19ee 100644 --- a/builtin/game/auth.lua +++ b/builtin/game/auth.lua @@ -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