summaryrefslogtreecommitdiffstats
path: root/scripts/hilightwin.pl
diff options
context:
space:
mode:
authorAilin Nemui2015-01-28 14:40:37 +0100
committerAilin Nemui2015-01-28 14:40:37 +0100
commit9a6ac88a69703c94fd099d2c5188523cf1b47d5c (patch)
treefdc70af0c7dd1e1097d295a21e9a611bb41cde31 /scripts/hilightwin.pl
parentebe02d5337cf9b5202721477c41762e96d75c912 (diff)
downloadscripts.irssi.org-9a6ac88a69703c94fd099d2c5188523cf1b47d5c.tar.bz2
Fix formatting codes in hilightwin
Escape any %-code so that it doesn't turn into colours.
Diffstat (limited to 'scripts/hilightwin.pl')
-rw-r--r--scripts/hilightwin.pl3
1 files changed, 2 insertions, 1 deletions
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);
}
}