From 2f11ae7114834a1e03dcefd2fab754ab9d8fa1c7 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 6 Feb 2020 03:37:07 -0800 Subject: [PATCH] Interpreter: case-insensitive dehighlight --- PBot/Interpreter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index eac2b327..2ec22145 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -927,7 +927,7 @@ sub dehighlight_nicks { my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick}; my $n_nh = $nicklist->{$channel}->{$nick}->{nick}; $n_nh =~ s/^(.)/$1$zwsp/; - $line =~ s/$n/$n_nh/g; + $line =~ s/$n/$n_nh/gi; } return $line; }