From 9a6ac88a69703c94fd099d2c5188523cf1b47d5c Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Wed, 28 Jan 2015 14:40:37 +0100 Subject: Fix formatting codes in hilightwin Escape any %-code so that it doesn't turn into colours. --- scripts/hilightwin.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/hilightwin.pl') 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); } } -- cgit v1.2.3