mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added an assert to make sure findCallbacksForArgs is used correctly.
This commit is contained in:
parent
e926198c8f
commit
9327be4b59
@ -620,6 +620,7 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
def findCallbacksForArgs(self, args):
|
def findCallbacksForArgs(self, args):
|
||||||
"""Returns a two-tuple of (command, plugins) that has the command
|
"""Returns a two-tuple of (command, plugins) that has the command
|
||||||
(a list of strings) and the plugins for which it was a command."""
|
(a list of strings) and the plugins for which it was a command."""
|
||||||
|
assert isinstance(args, list)
|
||||||
cbs = []
|
cbs = []
|
||||||
maxL = []
|
maxL = []
|
||||||
for cb in self.irc.callbacks:
|
for cb in self.irc.callbacks:
|
||||||
|
Loading…
Reference in New Issue
Block a user