I have a very simple Add-On defined below, which simply creates a settings file and writes a timestamp to it every time the Add-On is loaded.
The first time it is loaded it runs fine. It adds the timestamp to the settings file.
Code
_addon.name = 'Test'
_addon.author = 'Zubis'
_addon.commands = {'Test'}
_addon.version = '0.0.0.0'
require('tables')
config = require('config')
local defaults = T{}
defaults.timestamps = T{}
settings = config.load(defaults)
local timestamp = 'Timestamp: ' .. tostring(os.time(os.date("!*t")))
if settings.timestamps:contains(timestamp) == false then
settings.timestamps[#settings.timestamps+1] = timestamp
settings:save('all')
end
"//lua r test" gives this output on Run #1:

"//lua r test" gives this error on Run #2:
attempted to compare string with number
Any ideas?
