From 2d8a293a0b383e5bc28e096a388c7b065f693bb3 Mon Sep 17 00:00:00 2001 From: James Scott Date: Mon, 17 Dec 2012 19:40:22 -0500 Subject: [PATCH] Fixed the bug in the end game score placeholder and added a debug method to stop voting early. --- plugin.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugin.py b/plugin.py index 03595f3..45d3120 100644 --- a/plugin.py +++ b/plugin.py @@ -362,6 +362,21 @@ class Cah(callbacks.Plugin): irc.reply("I need a value between 1 and %s" % len(game.cardsPlayed)) else: irc.reply("A Game is not running, or the time is not to vote.") + + ####DEBUG VOTING REMOVE LATER##### + # TODO: REMOVE THIS DEBUG CODE # + def endvote(self, irc, msg, args): + channel = ircutils.toLower(msg.args[0]) + if channel in self.games: + try: + schedule.removeEvent("vote_%s" % self.channel) + except: + pass + self.endvote() + else: + irc.reply("Game not running.") + + ###### END CHANNEL COMMANDS ######