From c66072ffc2f53a838ad279f10efc9001ed75ebbc Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 29 May 2014 18:07:20 +0000 Subject: [PATCH] Misc: Improve code in previous merge. --- plugins/Misc/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Misc/plugin.py b/plugins/Misc/plugin.py index d8155cd82..74c048d9c 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -167,9 +167,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 %s" % channel - if not channel == irc.nick else "private")) + self.log.info('Not replying to %s in %s, not a command.' % + (tokens[0], "channel %s" % channel + if channel != irc.nick else "private")) if irc.nested: bracketConfig = conf.supybot.commands.nested.brackets brackets = conf.get(bracketConfig, channel)