Aka: Use %q converter instead of %r for logging (escapes % in expression).

This commit is contained in:
Valentin Lorentz 2013-08-11 11:10:17 +00:00
parent 4e9bb2c241
commit 50e3f2ab16

View File

@ -375,7 +375,7 @@ class Aka(callbacks.Plugin):
alias += ' $*'
try:
self._add_aka(channel, name, alias)
self.log.info('Adding Aka %r for %r (from %s)' % (
self.log.info('Adding Aka %q for %q (from %s)' % (
name, alias, msg.prefix))
irc.replySuccess()
except AkaError as e:
@ -398,7 +398,7 @@ class Aka(callbacks.Plugin):
channel = arg
try:
self._remove_aka(channel, name)
self.log.info('Removing Aka %r (from %s)' % (name, msg.prefix))
self.log.info('Removing Aka %q (from %s)' % (name, msg.prefix))
irc.replySuccess()
except AkaError as e:
irc.error(str(e))