aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-12-18 23:55:07 +0100
committerTeddy Wing2017-12-19 00:28:07 +0100
commit7c843bf249e5a3767ea030b2e84a7417d943d42e (patch)
tree36a06eb77288f7e608effd2d9d20947b7516e0d3
parent46be2e317c71f7a11c4e5f3dac4559d97a824cfa (diff)
downloadirssi-nohilight-remove-hilight-message-level.tar.bz2
Add a comment explaining the % substitutionremove-hilight-message-level
-rw-r--r--nohilight.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/nohilight.pl b/nohilight.pl
index ed95d35..442bd10 100644
--- a/nohilight.pl
+++ b/nohilight.pl
@@ -18,6 +18,8 @@ sub remove_hilight {
foreach my $nick (@nicks) {
if ($stripped =~ /<.?$nick>/) {
my $window = $dest->{window};
+
+ # Escape formatting character %
$text =~ s/%/%%/g;
# Remove hilight msglevel