BlackList: case-insensitive channel test

This commit is contained in:
Pragmatic Software 2020-05-09 03:16:14 -07:00
parent b5ec951df1
commit 2ef70f76fb
1 changed files with 1 additions and 1 deletions

View File

@ -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");