Fixed double-reply on bracketed non-commands

This commit is contained in:
Jeremy Fincher 2003-03-31 07:00:25 +00:00
parent 8e32a7cef9
commit 2806ec0a69
1 changed files with 3 additions and 2 deletions

View File

@ -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])