]> gitweb.pimeys.fr Git - bots/hung.git/commitdiff
Un % qui se baladait pas là où il fallait
authorHung IRC Bot <hung@crans.org>
Wed, 16 May 2012 11:42:07 +0000 (13:42 +0200)
committerHung IRC Bot <hung@crans.org>
Wed, 16 May 2012 11:42:07 +0000 (13:42 +0200)
hung.py
scores.pickle

diff --git a/hung.py b/hung.py
index 6e1b5cf44f52184a6988584fe2c0cd719cf792e8..ea2a64c843dec47a3a0bd5ad2a333de08d8c8b1a 100755 (executable)
--- a/hung.py
+++ b/hung.py
@@ -418,7 +418,7 @@ class Hung(ircbot.SingleServerIRCBot):
         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)) )
index 0700664c83b65d7985560f98b1c9510b7554efaf..bd6ebb3487ccfd5c2cac64c8eef7c0bbd7edbc59 100644 (file)
@@ -1,17 +1,17 @@
 (dp0
 S'Gaetan'
 p1
-I10
+I12
 sS'Petite-Peste'
 p2
-I21
+I54
 sS'[20-100]'
 p3
 I10
-sS'Echec'
-p4
-I10
 sS'pika'
-p5
+p4
 I8
-s.
+sS'Echec'
+p5
+I10
+s.
\ No newline at end of file