mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Ooops. left in some debugging print statements.
This commit is contained in:
parent
b627d23898
commit
3740c74aa9
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user