]> gitweb.pimeys.fr Git - bots/hung.git/blobdiff - hung.py
Stay away from here, cretin
[bots/hung.git] / hung.py
diff --git a/hung.py b/hung.py
index 99c934dcb6d9fba8cab60ef81de21a8a4cf33eda..76168026bb3d7447c32db8c8ca5dc93bce37dedd 100755 (executable)
--- a/hung.py
+++ b/hung.py
@@ -424,7 +424,7 @@ class Hung(ircbot.SingleServerIRCBot):
                         serv.privmsg(canal,"%s: %s"%(auteur,ligne.encode("utf8")))
             # on essaye de voir si le mot fourni matche la partie en cours
             mot = cmd
-            if self.play_status[canal][0]!=None and is_mot(mot, self.play_status[canal][0]):
+            if canal in self.play_channels and self.play_status[canal][0]!=None and is_mot(mot, self.play_status[canal][0]):
                 # on a trouvĂ© le mot
                 # on regarde combien de lettre il manquait
                 manquait = sum([not lettre[1] for lettre in self.play_status[canal][0]])