From 2ef70f76fbad56adcc76f5444980ec0f6d290fb1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 9 May 2020 03:16:14 -0700 Subject: [PATCH] BlackList: case-insensitive channel test --- PBot/BlackList.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/BlackList.pm b/PBot/BlackList.pm index d9fced8d..e02bcdd8 100644 --- a/PBot/BlackList.pm +++ b/PBot/BlackList.pm @@ -180,7 +180,7 @@ sub check_blacklist { $black_channel_escaped =~ s/\\(\.|\*)/$1/g; $black_hostmask_escaped =~ s/\\(\.|\*)/$1/g; - next if $channel !~ /^$black_channel_escaped$/; + next if $channel !~ /^$black_channel_escaped$/i; if ($flag eq 'a' && defined $nickserv && $nickserv =~ /^$black_hostmask_escaped$/i) { $self->{pbot}->{logger}->log("$hostmask nickserv $nickserv blacklisted in channel $channel (matches [\$a:$black_hostmask] host and [$black_channel] channel)\n");