From b6883214b1bf77d74cf6da108a0de26a2e7fbfc0 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Sat, 23 Jul 2011 00:38:09 -0500 Subject: [PATCH] changed the !stats grammar a bit (no seer -> no seers) without bolded "no" --- wolfgame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index b754886..9efe42b 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -410,10 +410,10 @@ def stats(cli, nick, chan, rest): elif not f: vb = "is" f = True - if count > 1: - message.append("\u0002{0}\u0002 {1}".format(count, var.plural(role))) + if count > 1 or count == 0: + message.append("\u0002{0}\u0002 {1}".format(count if count else "\u0002no\u0002", var.plural(role))) else: - message.append("\u0002{0}\u0002 {1}".format(count if count else "no", role)) + message.append("\u0002{0}\u0002 {1}".format(count, role)) cli.msg(chan, "{0}: There {3} {1}, and {2}.".format(nick, ", ".join(message[0:-1]), message[-1],