mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Owner: Honor supybot.reply.error.detailed on command syntax errors.
This commit is contained in:
parent
a9eb31f1b5
commit
e90b89f5b2
@ -262,7 +262,11 @@ class Owner(callbacks.Plugin):
|
||||
network=irc.network)
|
||||
self.Proxy(irc, msg, tokens)
|
||||
except SyntaxError as e:
|
||||
irc.error(str(e))
|
||||
if conf.supybot.reply.error.detailed():
|
||||
irc.error(str(e))
|
||||
else:
|
||||
irc.replyError(msg=msg)
|
||||
self.log.info('Syntax error: %s', e)
|
||||
|
||||
def logmark(self, irc, msg, args, text):
|
||||
"""<text>
|
||||
|
Loading…
Reference in New Issue
Block a user