From e90b89f5b2674ceb614988cdf2da24252e96e3f3 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 13 May 2020 19:58:06 +0200 Subject: [PATCH] Owner: Honor supybot.reply.error.detailed on command syntax errors. --- plugins/Owner/plugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Owner/plugin.py b/plugins/Owner/plugin.py index 6f40736b7..dfcebc193 100644 --- a/plugins/Owner/plugin.py +++ b/plugins/Owner/plugin.py @@ -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): """