Interpreter: remove < and > as nick characters in dehighlight_nicks()

This commit is contained in:
Pragmatic Software 2020-03-25 00:51:53 -07:00
parent d6ca9474c3
commit c88e5647e0
1 changed files with 2 additions and 2 deletions

View File

@ -879,8 +879,8 @@ sub dehighlight_nicks {
my @tokens = split / /, $line;
foreach my $token (@tokens) {
my $potential_nick = $token;
$potential_nick =~ s/^[^\w\[\]\<\>\-\\\^\{\}]+//;
$potential_nick =~ s/[^\w\[\]\<\>\-\\\^\{\}]+$//;
$potential_nick =~ s/^[^\w\[\]\-\\\^\{\}]+//;
$potential_nick =~ s/[^\w\[\]\-\\\^\{\}]+$//;
next if length $potential_nick == 1;
next if not $self->{pbot}->{nicklist}->is_present($channel, $potential_nick);