Added an assert.

This commit is contained in:
Jeremy Fincher 2004-12-10 07:59:06 +00:00
parent 7950141d94
commit 4d35de48c2

View File

@ -542,6 +542,9 @@ class IrcObjectProxy(RichReplyMethods):
"A proxy object to allow proper nested of commands (even threaded ones)."
def __init__(self, irc, msg, args, nested=0):
log.verbose('IrcObjectProxy.__init__: %s' % args)
assert isinstance(args, list), \
'Args should be a list. Don\'t call this with a string, it\s' \
'baaad.'
self.irc = irc
self.msg = msg
self.nested = nested