mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-02 15:34:05 +01:00
BlackList: case-insensitive channel test
This commit is contained in:
parent
b5ec951df1
commit
2ef70f76fb
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user