diff options
| author | Teddy Wing | 2017-12-18 23:55:07 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-12-19 00:28:07 +0100 |
| commit | 7c843bf249e5a3767ea030b2e84a7417d943d42e (patch) | |
| tree | 36a06eb77288f7e608effd2d9d20947b7516e0d3 | |
| parent | 46be2e317c71f7a11c4e5f3dac4559d97a824cfa (diff) | |
| download | irssi-nohilight-remove-hilight-message-level.tar.bz2 | |
Add a comment explaining the % substitutionremove-hilight-message-level
| -rw-r--r-- | nohilight.pl | 2 |
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 |
