mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12:34 +01:00
Interpreter: minor bugfix
This commit is contained in:
parent
f7d3c7b755
commit
d38402754e
@ -925,7 +925,8 @@ sub dehighlight_nicks {
|
|||||||
my $zwsp = "\x{200b}";
|
my $zwsp = "\x{200b}";
|
||||||
foreach my $nick (keys %{$nicklist->{$channel}}) {
|
foreach my $nick (keys %{$nicklist->{$channel}}) {
|
||||||
my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick};
|
my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick};
|
||||||
while ($line =~ m/($n)/gi) {
|
my $const_line = $line;
|
||||||
|
while ($const_line =~ m/($n)/gi) {
|
||||||
my $match = $1;
|
my $match = $1;
|
||||||
$match =~ s/^(.)/$1$zwsp/;
|
$match =~ s/^(.)/$1$zwsp/;
|
||||||
$line =~ s/$n/$match/i;
|
$line =~ s/$n/$match/i;
|
||||||
|
Loading…
Reference in New Issue
Block a user