From: Vincent Le Gallic Date: Sat, 8 Jun 2013 17:08:25 +0000 (+0200) Subject: On .upper() les mots fournis manuellement X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=6a20db1444800b9c4023d74e9c4b1e87358ab6b8;p=bots%2Fhung.git On .upper() les mots fournis manuellement (sinon, comme on .upper() les lettres fournies, on a des surprises…) --- diff --git a/hung.py b/hung.py index 0000a91..2e0355b 100755 --- a/hung.py +++ b/hung.py @@ -331,6 +331,7 @@ class Hung(ircbot.SingleServerIRCBot): else: definition = "(custom word)" # ' et - sont considérés comme déjà devinés + mot = mot.upper() mot = [(lettre,lettre in config.non_guess_chars) for lettre in list(mot)] self.play_status[canal]=[mot,definition,{}] self.tried_letters[canal] = set ()