Bugfix für AFK (kritisch)
This commit is contained in:
Andreas Bielawski
2016-07-30 13:22:25 +02:00
parent 200ae9ace7
commit b235b95757
2 changed files with 2 additions and 3 deletions

View File

@@ -80,8 +80,7 @@ function afk:pre_process(msg, self)
local timestamp = redis:hget(hash, 'time')
local current_timestamp = msg.date
local afk_time = current_timestamp - timestamp
local seconds = afk_time % 60
local duration = makeHumanTime(seconds)
local duration = makeHumanTime(afk_time)
redis:hset(hash, 'afk', false)
if afk_text then