From 00f26b0a73b43724a33999b432defacf4d0a01c7 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 20 Jul 2016 12:48:15 -0700 Subject: [PATCH] SedRegex: only operate on messages from the current network Reported by @jztech101. The 'receivedBy' tag is now checked to match the current IRC object, which Works around ProgVal/Limnoria#1211. From: https://github.com/jlu5/SupyPlugins/commit/84b94d589cbce214b8429f73221dbf536dbdd43d --- plugins/SedRegex/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/SedRegex/plugin.py b/plugins/SedRegex/plugin.py index 153c431c6..9fdf8fdb3 100644 --- a/plugins/SedRegex/plugin.py +++ b/plugins/SedRegex/plugin.py @@ -116,7 +116,7 @@ class SedRegex(callbacks.PluginRegexp): next(iterable) for m in iterable: if m.command in ('PRIVMSG', 'NOTICE') and \ - m.args[0] == msg.args[0]: + m.args[0] == msg.args[0] and m.tagged('receivedBy') == irc: target = regex.group('nick') if not ircutils.isNick(str(target), strictRfc=True): return