From: Ailin Nemui Date: Wed, 28 Jan 2015 13:40:37 +0000 (+0100) Subject: Fix formatting codes in hilightwin X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9a6ac88a69703c94fd099d2c5188523cf1b47d5c;p=irssi-scripts.irssi.org.git Fix formatting codes in hilightwin Escape any %-code so that it doesn't turn into colours. --- diff --git a/scripts/hilightwin.pl b/scripts/hilightwin.pl index cb54ef2..d735e1b 100644 --- a/scripts/hilightwin.pl +++ b/scripts/hilightwin.pl @@ -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); } }