X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fhung.git;a=blobdiff_plain;f=hung.py;h=99c934dcb6d9fba8cab60ef81de21a8a4cf33eda;hp=674c09ebb04888cd963a64b1004cf61c5325ccfa;hb=8cd5df9cdfbae866cb1744b9e9cc192c52efb2bc;hpb=d22621bc1ae19a1c4e4e16e53bb44bbd2e7bea13 diff --git a/hung.py b/hung.py index 674c09e..99c934d 100755 --- a/hung.py +++ b/hung.py @@ -325,7 +325,7 @@ class Hung(ircbot.SingleServerIRCBot): indice = random.randrange(0,len(mots)) mot,definition=mots[indice],defs[indice] # ' et - sont considérés comme déjà devinés - mot = [(lettre,lettre in "'-()") for lettre in list(mot)] + mot = [(lettre,lettre in config.non_guess_chars) for lettre in list(mot)] self.play_status[canal]=[mot,definition,{}] self.tried_letters[canal] = set () self.lives[canal] = config.lives