From ff3b03973f8b9f5d1b377db5d285654ff5f84ecd Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 18 Feb 2005 23:01:41 +0000 Subject: [PATCH] Let's not try to call getCommand on callbacks that don't have it. --- src/callbacks.py | 2 ++ 1 file changed, 2 insertions(+) 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: