[whoison] Handle missing lastseen
This commit is contained in:
parent
c22c10047f
commit
33c7bad24e
@ -58,7 +58,7 @@ function whoison.updateStats(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function whoison.updateFormat(name)
|
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
|
-- update old data to new format
|
||||||
minetest.log("action",name.." lastseen is not a table... fixing...")
|
minetest.log("action",name.." lastseen is not a table... fixing...")
|
||||||
local lo = whoison.lastseen[name]
|
local lo = whoison.lastseen[name]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user