Fixed bug with empty [] in command.

This commit is contained in:
Jeremy Fincher 2003-09-05 07:26:55 +00:00
parent b2beec0804
commit 7b3a62eacf
1 changed files with 10 additions and 7 deletions

View File

@ -259,13 +259,16 @@ class IrcObjectProxy:
"A proxy object to allow proper nested of commands (even threaded ones)."
def __init__(self, irc, msg, args):
#debug.printf('__init__: %s' % args)
self.irc = irc
self.msg = msg
self.args = args
self.counter = 0
self.finalEvaled = False
world.commandsProcessed += 1
self.evalArgs()
if not args:
irc.reply(msg, '[]')
else:
self.irc = irc
self.msg = msg
self.args = args
self.counter = 0
self.finalEvaled = False
world.commandsProcessed += 1
self.evalArgs()
def findCallback(self, commandName):
# Mostly for backwards compatibility now.