]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Fix formatting codes in hilightwin
authorAilin Nemui <redacted>
Wed, 28 Jan 2015 13:40:37 +0000 (14:40 +0100)
committerAilin Nemui <redacted>
Wed, 28 Jan 2015 13:40:37 +0000 (14:40 +0100)
Escape any %-code so that it doesn't turn into colours.

scripts/hilightwin.pl

index cb54ef235ec166bbbe08ee63a13a34b1aa5bcf8c..d735e1b72dde558b026bf2f2ee4f89bc147a3426 100644 (file)
@@ -11,7 +11,7 @@ use Irssi;
 use POSIX;
 use vars qw($VERSION %IRSSI); 
 
-$VERSION = "0.02";
+$VERSION = "0.03";
 %IRSSI = (
     authors     => "Timo \'cras\' Sirainen, Mark \'znx\' Sangster",
     contact     => "tss\@iki.fi, znxster\@gmail.com", 
@@ -44,6 +44,7 @@ sub sig_printtext {
             Irssi::settings_get_str('timestamp_format')." ",
             localtime
         ).$text;
+        $text =~ s/%/%%/g;
         $window->print($text, MSGLEVEL_NEVER) if ($window);
     }
 }
git clone https://git.99rst.org/PROJECT