tryother=True
if tryother:
if self.play_status.get(canal,[-1])[0] in [1,2]:
- answer=self.play_status[canal][4]
- if re.match(tolere(answer),unicode(message,"utf8").lower()):
+ answer_regexp=self.play_status[canal][3]
+ if re.match(tolere(answer_regexp),unicode(message,"utf8").lower()):
+ answer=self.play_status[canal][4]
serv.privmsg(canal,"%s: bravo ! (C'était %s)"%(auteur,answer))
token=time.time()
self.play_status[canal]=[0,token]