Sudo: Show used command in the log when sudo is not granted.

master
Valentin Lorentz 2014-03-26 07:06:03 +00:00
parent 63d86909f8
commit 364cf9c8de
1 changed files with 2 additions and 1 deletions

View File

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