fixed passthough command

This commit is contained in:
James Scott 2012-12-13 23:04:39 -05:00
parent 1d53b23b3c
commit 7c7835a3d6
1 changed files with 4 additions and 2 deletions

View File

@ -218,14 +218,16 @@ class Cah(callbacks.Plugin):
Class = CahGame
###### CHANNEL COMMANDS ######
def startgame(self,irc, msg, args):
def forcestartgame(self, irc, msg, args):
if channel in self.games:
try:
schedule.removeEvent("start_game_%s" % self.channel)
except:
pass
self.games[channel].startgame()
else:
irc.reply("Game not running.")
def playing(self, irc, msg, args):
channel = ircutils.toLower(msg.args[0])
nick = msg.nick