Let's not try to call getCommand on callbacks that don't have it.

This commit is contained in:
Jeremy Fincher 2005-02-18 23:01:41 +00:00
parent 7ff9463f9b
commit ff3b03973f

View File

@ -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: