mirror of https://github.com/pragma-/pbot.git
Interpreter: case-insensitive dehighlight
This commit is contained in:
parent
1a2d463f5b
commit
2f11ae7114
|
@ -927,7 +927,7 @@ sub dehighlight_nicks {
|
||||||
my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick};
|
my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick};
|
||||||
my $n_nh = $nicklist->{$channel}->{$nick}->{nick};
|
my $n_nh = $nicklist->{$channel}->{$nick}->{nick};
|
||||||
$n_nh =~ s/^(.)/$1$zwsp/;
|
$n_nh =~ s/^(.)/$1$zwsp/;
|
||||||
$line =~ s/$n/$n_nh/g;
|
$line =~ s/$n/$n_nh/gi;
|
||||||
}
|
}
|
||||||
return $line;
|
return $line;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue