From 364cf9c8de33c3000daf9c5e9d0ecff8a7caeca1 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 26 Mar 2014 07:06:03 +0000 Subject: [PATCH] Sudo: Show used command in the log when sudo is not granted. --- Sudo/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sudo/plugin.py b/Sudo/plugin.py index 93df103..4f64225 100644 --- a/Sudo/plugin.py +++ b/Sudo/plugin.py @@ -188,7 +188,8 @@ class Sudo(callbacks.Plugin): name, rule = self.db.getRuleMatching(command) bannedChars = conf.supybot.commands.nested.brackets() if name is None: - log.warning('Sudo not granted to "%s"' % msg.prefix) + log.warning('Sudo for %r not granted to "%s"' % + (command, msg.prefix)) irc.error(_('Sudo not granted.')) else: assert rule is not None