aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-11 18:24:32 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-11 18:24:32 +0000
commitd95566acb6cefaa25a110610b5931497982abcfc (patch)
tree4c175c89c52702991247ac1c1ba32bd38570b7eb /telem.lua
parentDon't count a thread as updated if the most recent post was made by the curre... (diff)
Don't crash if a new user doesn't have a scanfile.
Diffstat (limited to 'telem.lua')
-rwxr-xr-xtelem.lua1
1 files changed, 1 insertions, 0 deletions
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