diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index 72ab2aa9f..3e1e46583 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -70,8 +70,8 @@ class Channel(callbacks.Plugin): channel, msg.prefix) irc.sendMsg(networkGroup.channels.join(channel)) else: - self.log.info('Kicked from %s by %s. Not auto-rejoining.' % - (channel, msg.prefix)) + self.log.info('Kicked from %s by %s. Not auto-rejoining.', + channel, msg.prefix) def _sendMsg(self, irc, msg): irc.queueMsg(msg) diff --git a/plugins/Dunno/plugin.py b/plugins/Dunno/plugin.py index f67951aa2..ef96a3d54 100644 --- a/plugins/Dunno/plugin.py +++ b/plugins/Dunno/plugin.py @@ -49,7 +49,7 @@ class Dunno(plugins.ChannelIdDatabasePlugin): dunno = dunno.text prefixNick = self.registryValue('prefixNick', channel) env = {'command': tokens[0]} - self.log.info('Issuing "dunno" answer, %s is not a command.' % + self.log.info('Issuing "dunno" answer, %s is not a command.', tokens[0]) dunno = ircutils.standardSubstitute(irc, msg, dunno, env=env) irc.reply(dunno, prefixNick=prefixNick) diff --git a/plugins/Misc/plugin.py b/plugins/Misc/plugin.py index bb85ce43d..240fce914 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -171,9 +171,9 @@ class Misc(callbacks.Plugin): if tokens: # echo [] will get us an empty token set, but there's no need # to log this in that case anyway, it being a nested command. - self.log.info('Not replying to %s in %s, not a command.' % - (tokens[0], channel - if channel != irc.nick else _('private'))) + self.log.info('Not replying to %s in %s, not a command.', + tokens[0], channel + if channel != irc.nick else _('private')) if irc.nested: bracketConfig = conf.supybot.commands.nested.brackets brackets = conf.get(bracketConfig, channel) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 938910bb5..f1a7bbc2a 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -324,7 +324,7 @@ class RSS(callbacks.Plugin): for name in announced_feeds: feed = self.get_feed(name) if not feed: - self.log.warning('Feed %s is announced but does not exist.' % + self.log.warning('Feed %s is announced but does not exist.', name) continue self.update_feed_if_needed(feed) diff --git a/plugins/Scheduler/plugin.py b/plugins/Scheduler/plugin.py index 701cc60a2..19c929ab1 100644 --- a/plugins/Scheduler/plugin.py +++ b/plugins/Scheduler/plugin.py @@ -87,7 +87,7 @@ class Scheduler(callbacks.Plugin): except AssertionError as e: if str(e) == 'An event with the same name has already been scheduled.': # we must be reloading the plugin, event is still scheduled - self.log.info('Event %s already exists, adding to dict.' % (name,)) + self.log.info('Event %s already exists, adding to dict.', name) self.events[name] = event else: raise