mirror of https://github.com/Mikaela/Limnoria.git
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