def gagne(self, serv, canal, bonus=None, bonusvalue=2):
serv.privmsg(canal,"Bravo !")
realword = self.reveal_word(serv, canal)
- nlettre=float(len(realword.replace("'","").replace("-","")))
+ nlettre=float(len([l for l in realword if not l in config.non_guess_chars]))
contribs=["%s:%s%%%s"%(pseudo,str(int(100*contrib/nlettre)),("+bonus(%s)"%(bonusvalue))*(bonus==pseudo)) for pseudo,contrib in self.play_status[canal][2].items()]
contribs_score={pseudo:int(10*contrib/nlettre) for pseudo,contrib in self.play_status[canal][2].items()}
self.add_score(contribs_score)