From 6a20db1444800b9c4023d74e9c4b1e87358ab6b8 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 8 Jun 2013 19:08:25 +0200 Subject: [PATCH] On .upper() les mots fournis manuellement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (sinon, comme on .upper() les lettres fournies, on a des surprises…) --- hung.py | 1 + 1 file changed, 1 insertion(+) 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 () -- 2.39.2