diff --git a/src/callbacks.py b/src/callbacks.py index fb58b23ed..7182b5741 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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: