]> gitweb.pimeys.fr Git - bots/hung.git/commitdiff
pas de si au singulier
authorHung IRC Bot <hung@crans.org>
Mon, 10 Jun 2013 15:35:56 +0000 (17:35 +0200)
committerHung IRC Bot <hung@crans.org>
Mon, 10 Jun 2013 15:35:56 +0000 (17:35 +0200)
hung.py

diff --git a/hung.py b/hung.py
index c022105f9db7894f4825e846fed7fe0fc31a2eab..7b848186bd67cfa2b9d3adc62b031b2f06ed906f 100755 (executable)
--- a/hung.py
+++ b/hung.py
@@ -433,7 +433,7 @@ class Hung(ircbot.SingleServerIRCBot):
                         # On perd une chance
                         self.lives[canal] -= 1
                         if self.lives[canal] > 0:
-                            serv.privmsg(canal, "Pas de %s. Plus que %s chances…" % (giv_let, self.lives[canal]))
+                            serv.privmsg(canal, "Pas de %s. Plus que %s chance%s…" % (giv_let, self.lives[canal], "s" * (self.lives[canal] > 1)))
                         if self.lives[canal] == 0:
                             serv.privmsg(canal, "Pas de %s." % (giv_let))
                             self.perd(serv, canal)