From 5577bb691d00cbb23c2e2d844554737519c8be80 Mon Sep 17 00:00:00 2001 From: James Scott Date: Mon, 17 Dec 2012 19:54:14 -0500 Subject: [PATCH] fixed -1 or 0 as a voting option. --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 647cb73..6e08391 100644 --- a/plugin.py +++ b/plugin.py @@ -349,7 +349,7 @@ class Cah(callbacks.Plugin): if game.voting: if msg.nick in game.voted: irc.reply("You already voted! This isn't Chicago!") - elif vote > len(game.cardsPlayed): + elif vote > len(game.cardsPlayed) or vote < 1: raise ValueError else: game.voted.append(msg.nick)