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: e19abe0498
This commit is contained in:
James Lu 2019-06-05 14:58:46 -07:00
parent 67a3928e4d
commit 937930ab6a
1 changed files with 1 additions and 1 deletions

View File

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