From 937930ab6a136696730f85e0bc962954c922e3ee Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 5 Jun 2019 14:58:46 -0700 Subject: [PATCH] SedRegex: match channel names case insensitively Some IRCds (Unreal 3.2) don't mangle target names for case correctness, leading to a bug where users end up ignored by the plugin. Reported by DOMF via IRC. From: https://github.com/jlu5/SupyPlugins/commit/e19abe049888667c3d0a4eb4a2c3ae88b8bea511 --- 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 f10f1c863..55945f3bc 100644 --- a/plugins/SedRegex/plugin.py +++ b/plugins/SedRegex/plugin.py @@ -130,7 +130,7 @@ class SedRegex(callbacks.PluginRegexp): for m in iterable: if m.command in ('PRIVMSG', 'NOTICE') and \ - m.args[0] == msg.args[0] and m.tagged('receivedBy') == irc: + ircutils.strEqual(m.args[0], msg.args[0]) and m.tagged('receivedBy') == irc: if target and m.nick != target: continue # Don't snarf ignored users' messages unless specifically