mirror of https://github.com/Mikaela/Limnoria.git
Fixed double-reply on bracketed non-commands
This commit is contained in:
parent
8e32a7cef9
commit
2806ec0a69
|
@ -234,8 +234,9 @@ class IrcObjectProxy:
|
||||||
if callback is None:
|
if callback is None:
|
||||||
self.args.insert(0, name)
|
self.args.insert(0, name)
|
||||||
self.reply(self.msg, '[%s]' % ' '.join(self.args))
|
self.reply(self.msg, '[%s]' % ' '.join(self.args))
|
||||||
command = getattr(callback, name)
|
else:
|
||||||
callback.callCommand(command, self, self.msg, self.args)
|
command = getattr(callback, name)
|
||||||
|
callback.callCommand(command, self, self.msg, self.args)
|
||||||
except Error, e:
|
except Error, e:
|
||||||
if str(e) == '':
|
if str(e) == '':
|
||||||
self.reply(self.msg, command.__doc__.splitlines()[0])
|
self.reply(self.msg, command.__doc__.splitlines()[0])
|
||||||
|
|
Loading…
Reference in New Issue