irc_pseudo="hung"
chanlist=["#bot","#flood"]
stay_channels=["#bot","#flood"]
-play_channels=["#flood"]
+play_channels=["#bot","#flood"]
quiet_channels=[]
logfile_template="hung.%s.log"
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]])