From 2806ec0a69292cf6ab3fc3444029e8caad5d5055 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 31 Mar 2003 07:00:25 +0000 Subject: [PATCH] Fixed double-reply on bracketed non-commands --- src/callbacks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 77c30acf9..90f92ea7a 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -234,8 +234,9 @@ class IrcObjectProxy: if callback is None: self.args.insert(0, name) self.reply(self.msg, '[%s]' % ' '.join(self.args)) - command = getattr(callback, name) - callback.callCommand(command, self, self.msg, self.args) + else: + command = getattr(callback, name) + callback.callCommand(command, self, self.msg, self.args) except Error, e: if str(e) == '': self.reply(self.msg, command.__doc__.splitlines()[0])