From 57493551ffa2453670581941b6a0f4fb343b6e9c Mon Sep 17 00:00:00 2001 From: Vincent Foley Date: Fri, 9 Jan 2004 22:17:38 +0000 Subject: [PATCH] YABF --- plugins/Words.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Words.py b/plugins/Words.py index b41731648..c5080dd9a 100644 --- a/plugins/Words.py +++ b/plugins/Words.py @@ -254,6 +254,9 @@ class Words(callbacks.Privmsg, configurable.Mixin): """ channel = msg.args[0] game = self.games[channel] + if not game.gameOn: + irc.error(msg, 'There is no hangman game going on right now.') + return irc.reply(msg, '%s %s' % (game.prefix, ' '.join(game.unused))) def hangman(self, irc, msg, args): @@ -290,7 +293,7 @@ class Words(callbacks.Privmsg, configurable.Mixin): self.hangman(irc, msg, args) else: irc.error(msg, 'Sorry, there is already a game going on. ' - '%s left before timeout.' % utils.nItems('seconds', + '%s left before timeout.' % utils.nItems('second', int(game.timeout - secondsEllapsed))) def guess(self, irc, msg, args):