Ooops. left in some debugging print statements.

This commit is contained in:
James Vega 2004-09-23 16:58:39 +00:00
parent b627d23898
commit 3740c74aa9

View File

@ -287,8 +287,6 @@ def getNick(irc, msg, args):
def getChannel(irc, msg, args, cap=None): def getChannel(irc, msg, args, cap=None):
if ircutils.isChannel(args[0]): if ircutils.isChannel(args[0]):
channel = args.pop(0) channel = args.pop(0)
print '*** channel? %s' % channel
print '*** args? %s' % args
elif ircutils.isChannel(msg.args[0]): elif ircutils.isChannel(msg.args[0]):
channel = msg.args[0] channel = msg.args[0]
else: else:
@ -406,13 +404,11 @@ def args(irc,msg,args, required=[], optional=[], getopts=None, noExtra=False):
callConverter(converterName) callConverter(converterName)
except IndexError: except IndexError:
if req: if req:
print '*** commands.args IndexError'
raise callbacks.ArgumentError raise callbacks.ArgumentError
while opt: while opt:
del opt[-1] del opt[-1]
starArgs.append('') starArgs.append('')
if noExtra and args: if noExtra and args:
print '*** commands.args noExtra and args'
raise callbacks.ArgumentError raise callbacks.ArgumentError
return starArgs return starArgs