[whoison] Handle missing last seen

master
LeMagnesium 2018-02-10 20:56:49 +01:00
parent f924d141d2
commit a19acdf04e
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ function whoison.updateStats(name)
end
function whoison.updateFormat(name)
if ( type(whoison.lastseen[name]) ~= "table" ) then
if ( whoison.lastseen and type(whoison.lastseen[name]) ~= "table" ) then
-- update old data to new format
minetest.log("action",name.." lastseen is not a table... fixing...")
local lo = whoison.lastseen[name]