self.chanlist=config_chanlist
self.stay_channels=config_stay_channels
self.play_channels=config_play_channels
- self.play_status={}
+ self.play_status={i:[None,None,None] for i in self.play_channels}
self.quiet_channels=config_quiet_channels
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 is_mot(mot, self.play_status[canal][0]):
+ if 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]])