mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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 = []
|
cbs = []
|
||||||
maxL = []
|
maxL = []
|
||||||
for cb in self.irc.callbacks:
|
for cb in self.irc.callbacks:
|
||||||
|
if not hasattr(cb, 'getCommand'):
|
||||||
|
continue
|
||||||
L = cb.getCommand(args)
|
L = cb.getCommand(args)
|
||||||
log.debug('%s.getCommand(%r) returned %r', cb.name(), args, L)
|
log.debug('%s.getCommand(%r) returned %r', cb.name(), args, L)
|
||||||
if L and L >= maxL:
|
if L and L >= maxL:
|
||||||
|
Loading…
Reference in New Issue
Block a user