diff --git a/Replacer/plugin.py b/Replacer/plugin.py index 2e7ea96..46a409b 100644 --- a/Replacer/plugin.py +++ b/Replacer/plugin.py @@ -113,8 +113,8 @@ class Replacer(callbacks.PluginRegexp): next(iterable) for m in iterable: - if m.args[0] == msg.args[0] and \ - m.command == 'PRIVMSG': + if m.command == 'PRIVMSG' and \ + m.args[0] == msg.args[0]: target = regex.group('nick') if not ircutils.isNick(str(target), strictRfc=True): return