3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Interpreter: case-insensitive dehighlight

This commit is contained in:
Pragmatic Software 2020-02-06 03:37:07 -08:00
parent 1a2d463f5b
commit 2f11ae7114

View File

@ -927,7 +927,7 @@ sub dehighlight_nicks {
my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick};
my $n_nh = $nicklist->{$channel}->{$nick}->{nick};
$n_nh =~ s/^(.)/$1$zwsp/;
$line =~ s/$n/$n_nh/g;
$line =~ s/$n/$n_nh/gi;
}
return $line;
}