From caf30c90a18faad5dff6ce544dab4fa3a673b82b Mon Sep 17 00:00:00 2001 From: jcao219 Date: Thu, 4 Aug 2011 23:51:58 -0500 Subject: [PATCH] Now !votes shows the amount of votes needed to lynch when there are no votes --- wolfgame.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index a0c51a2..7d5eef8 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -528,17 +528,12 @@ def show_votes(cli, nick, chan, rest): return elif not var.VOTES.values(): cli.msg(chan, nick+": No votes yet.") - return - if None in [x for voter in var.VOTES.values() for x in voter]: - cli.msg(chan, (nick+": Tiebreaker conditions. Whoever "+ - "receives the next vote will be lynched.")) - return - - votelist = ["{0}: {1} ({2})".format(votee, - len(var.VOTES[votee]), - " ".join(var.VOTES[votee])) - for votee in var.VOTES.keys()] - cli.msg(chan, "{0}: {1}".format(nick, ", ".join(votelist))) + else: + votelist = ["{0}: {1} ({2})".format(votee, + len(var.VOTES[votee]), + " ".join(var.VOTES[votee])) + for votee in var.VOTES.keys()] + cli.msg(chan, "{0}: {1}".format(nick, ", ".join(votelist))) pl = var.list_players() avail = len(pl) - len(var.WOUNDED)