serv.privmsg(canal,"Bravo ! C'était %s"%(realword))
serv.privmsg(canal,definition)
nlettre=float(len(realword.replace("'","").replace("-","")))
- contribs=["%s:%s%%"%(pseudo,str(int(100*contrib/nlettre))+("+bonus(%s)"%(bonusvalue))*(bonus==pseudo)) for pseudo,contrib in self.play_status[canal][2].items()]
+ 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)
serv.privmsg(canal,"Contributions : %s"%(" ".join(contribs)) )