diff --git a/plugin.py b/plugin.py index 265747d..553c675 100644 --- a/plugin.py +++ b/plugin.py @@ -49,7 +49,7 @@ class TimeoutList: return True return False - def getTimeLeft(self, getTimeLeft): + def getTimeLeft(self, value): return self.timeout - (time.time() - self.dict[value]) class TriviaTime(callbacks.Plugin): @@ -1106,7 +1106,7 @@ class TriviaTime(callbacks.Plugin): skipSeconds = self.registryValue('skip.skipTime', channel) game.skips.setTimeout(skipSeconds) if game.skips.has(usernameCanonical): - self.reply(irc, msg, 'You must wait %s seconds to be able to skip again.' % (game.skips.getTimeLeft(usernameCanonical))) + self.reply(irc, msg, 'You must wait %d seconds to be able to skip again.' % (game.skips.getTimeLeft(usernameCanonical))) return # Update skip count