From 9327be4b5982289360609023977bbaf071c11459 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 18 Feb 2005 08:26:02 +0000 Subject: [PATCH] Added an assert to make sure findCallbacksForArgs is used correctly. --- src/callbacks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/callbacks.py b/src/callbacks.py index cc14d262f..5f910fdb4 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -620,6 +620,7 @@ class IrcObjectProxy(RichReplyMethods): def findCallbacksForArgs(self, args): """Returns a two-tuple of (command, plugins) that has the command (a list of strings) and the plugins for which it was a command.""" + assert isinstance(args, list) cbs = [] maxL = [] for cb in self.irc.callbacks: