From 8e9742a0e4b1d25229902bfb5e1bf4cde3a7f5ee Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 22 Mar 2020 15:52:47 -0700 Subject: [PATCH] Interpreter: do not dehighlight single-letter nicks or nicks in URLs --- PBot/Interpreter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 09b912e2..0965782e 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -878,9 +878,10 @@ sub dehighlight_nicks { my @nicks = $self->{pbot}->{nicklist}->get_nicks($channel); return $line if not @nicks; foreach my $nick (@nicks) { + next if length $nick == 1; $nick = quotemeta $nick; my $const_line = $line; - while ($const_line =~ m/(?