]> gitweb.pimeys.fr Git - bots/hung.git/blobdiff - hung.py
Fucking dots
[bots/hung.git] / hung.py
diff --git a/hung.py b/hung.py
index 674c09ebb04888cd963a64b1004cf61c5325ccfa..99c934dcb6d9fba8cab60ef81de21a8a4cf33eda 100755 (executable)
--- 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