mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Let's not try to call getCommand on callbacks that don't have it.
This commit is contained in:
parent
7ff9463f9b
commit
ff3b03973f
@ -624,6 +624,8 @@ class IrcObjectProxy(RichReplyMethods):
|
||||
cbs = []
|
||||
maxL = []
|
||||
for cb in self.irc.callbacks:
|
||||
if not hasattr(cb, 'getCommand'):
|
||||
continue
|
||||
L = cb.getCommand(args)
|
||||
log.debug('%s.getCommand(%r) returned %r', cb.name(), args, L)
|
||||
if L and L >= maxL:
|
||||
|
Loading…
Reference in New Issue
Block a user