Added an assert to make sure findCallbacksForArgs is used correctly.

This commit is contained in:
Jeremy Fincher 2005-02-18 08:26:02 +00:00
parent e926198c8f
commit 9327be4b59

View File

@ -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: