]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Update showhilight.pl
authorailin-nemui <redacted>
Tue, 23 May 2017 08:54:02 +0000 (10:54 +0200)
committerGitHub <redacted>
Tue, 23 May 2017 08:54:02 +0000 (10:54 +0200)
fixes #407

scripts/showhilight.pl

index 4619f78b5b6f1f3fa9df33bca5735b4d230f6c29..e55dd316a1457ddc2d0836c0a4fa894533a97c47 100644 (file)
@@ -1,11 +1,11 @@
 # Print hilighted messages with MSGLEVEL_PUBLIC  to active window 
-# for irssi 0.7.99 by Pawe³ 'Styx' Chuchma³a based on hilightwin.pl by Timo Sirainen
+# for irssi 0.7.99 by Paweł 'Styx' Chuchmała based on hilightwin.pl by Timo Sirainen
 use strict;
 use Irssi;
 use vars qw($VERSION %IRSSI); 
-$VERSION = "0.1";
+$VERSION = "0.2";
 %IRSSI = (
-        authors         => "Pawe³ \'Styx\' Chuchma³a",
+        authors         => "Paweł \'Styx\' Chuchmała",
        contact         => "styx\@irc.pl",
        name            => "showhilight",
        description     => "Show hilight messages in active window",
@@ -22,6 +22,7 @@ sub sig_printtext {
   if (($dest->{level} & MSGLEVEL_HILIGHT) && ($dest->{level} & MSGLEVEL_PUBLIC) && 
        ($window->{refnum} != $dest->{window}->{refnum}) && ($dest->{level} & MSGLEVEL_NOHILIGHT) == 0) {
 
+    $text =~ s/%/%%/g;
     $text = $dest->{target}.":%K[".Irssi::settings_get_str('hilight_color').$dest->{window}->{refnum}."%K]:".$text;
 
     $window->print($text, MSGLEVEL_CLIENTCRAP);
git clone https://git.99rst.org/PROJECT