From c88e5647e0bf58c0906030c081f3e08d870792a8 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 25 Mar 2020 00:51:53 -0700 Subject: [PATCH] Interpreter: remove < and > as nick characters in dehighlight_nicks() --- PBot/Interpreter.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index c0c122e8..6e8b050d 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -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);