From 4d35de48c24e26dbd96d158742eba4e132e417a2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 10 Dec 2004 07:59:06 +0000 Subject: [PATCH] Added an assert. --- src/callbacks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index 03ef6eda0..d209afbd7 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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