Misc: Improve code in previous merge.

This commit is contained in:
Valentin Lorentz 2014-05-29 18:07:20 +00:00
parent 391c645617
commit c66072ffc2

View File

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