From d38402754e9f9389b82b1dbe7ff6cee3aa79a7d7 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 6 Feb 2020 04:01:41 -0800 Subject: [PATCH] Interpreter: minor bugfix --- PBot/Interpreter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index f6dab5ed..4f41bac6 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -925,7 +925,8 @@ sub dehighlight_nicks { my $zwsp = "\x{200b}"; foreach my $nick (keys %{$nicklist->{$channel}}) { 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; $match =~ s/^(.)/$1$zwsp/; $line =~ s/$n/$match/i;