From b697661a56904668b55e15f5837ee6b8c14b9d58 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 3 Jan 2005 18:03:29 +0000 Subject: [PATCH] Actually wrap crossword so that it's an available command. Include game.guess in the initial reply when starting a hangman game. --- plugins/Words.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/Words.py b/plugins/Words.py index 3a663e66a..0f438ec2a 100644 --- a/plugins/Words.py +++ b/plugins/Words.py @@ -143,6 +143,7 @@ class Words(callbacks.Privmsg): 'sorted order) to be at %s. Contact the owner of this ' 'bot to remedy this situation.' % self.registryValue('file')) + def crossword(self, irc, msg, args, word): """ @@ -177,6 +178,7 @@ class Words(callbacks.Privmsg): irc.reply(utils.commaAndify(words)) else: irc.reply('No matching words were found.') + crossword = wrap(crossword, ['something']) ### # HANGMAN @@ -243,8 +245,9 @@ class Words(callbacks.Privmsg): game.hidden) self._hangmanReply(irc, channel, 'Okay ladies and gentlemen, you have ' - 'a %s-letter word to find, you have %s!' % - (game.guess.count('_'), game.triesLeft())) + 'a %s-letter word (%s) to find, you have %s!' % + (game.guess.count('_'), game.guess, + game.triesLeft())) # So, a game is going on, but let's see if it's timed out. If it is # we create a new one, otherwise we inform the user else: