From: Hung IRC Bot Date: Mon, 10 Jun 2013 15:35:56 +0000 (+0200) Subject: pas de si au singulier X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=8847da02712c4e2f56c1ab75a3da4d450513a202;p=bots%2Fhung.git pas de si au singulier --- diff --git a/hung.py b/hung.py index c022105..7b84818 100755 --- 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)