Owner: Honor supybot.reply.error.detailed on command syntax errors.

This commit is contained in:
Valentin Lorentz 2020-05-13 19:58:06 +02:00
parent a9eb31f1b5
commit e90b89f5b2
1 changed files with 5 additions and 1 deletions

View File

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