From d95566acb6cefaa25a110610b5931497982abcfc Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Tue, 11 Dec 2018 18:24:32 +0000 Subject: Don't crash if a new user doesn't have a scanfile. --- telem.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/telem.lua b/telem.lua index 4e37899..0bfebe9 100755 --- a/telem.lua +++ b/telem.lua @@ -148,6 +148,7 @@ end function load_scan_times() local scanfile = path.join(_BBS_ROOT, "scans", username ..".scan") local f, err = io.open(scanfile, "r") + if f == nil then return end for line in f:lines() do local _, _, board, scantime = string.find(line, "(%a+):(%d+)") if boards_by_name[board] then -- cgit v1.2.3