Third time's the charm
This commit is contained in:
Tanner 2014-06-17 22:03:58 -05:00
parent 593148f4d3
commit b9aa665364
1 changed files with 2 additions and 2 deletions

View File

@ -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