Fixed the start game command

This commit is contained in:
James Scott 2012-12-13 20:12:51 -05:00
parent 97ea0611ac
commit 38485e206a
1 changed files with 5 additions and 1 deletions

View File

@ -134,11 +134,15 @@ class Cah(callbacks.Plugin):
irc.reply("Game not running.")
def cah(self, irc, msg, numrounds=5):
def cah(self, irc, msg, args):
"""Starts a cards against humanity game, takes
an optional arguement of number of rounds"""
channel = ircutils.toLower(msg.args[0])
#TODO: this is prob needs fixing.
if len(arg) < 1:
numrounds = 5
else:
numrounds = args[0]
try:
irc.reply("A game is running, please wait till it is finished to start a new one.")
except: