From 26c0c161180738a8a56d92b573b131b528b283ec Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Thu, 3 Dec 2015 21:04:35 +0100 Subject: linebuffer 0.3 - fixed off by one error --- scripts/linebuffer.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/linebuffer.pl b/scripts/linebuffer.pl index 9e002bb..c0f29db 100644 --- a/scripts/linebuffer.pl +++ b/scripts/linebuffer.pl @@ -3,7 +3,7 @@ use warnings; use Irssi; use Irssi::TextUI; use Hash::Util qw(); -our $VERSION = '0.2'; # c1eddc6a0d6385a +our $VERSION = '0.3'; # 8a7f8770be646c3 our %IRSSI = ( authors => 'Nei', contact => 'Nei @ anti@conference.jabber.teamidiot.de', @@ -109,7 +109,7 @@ HELP my ($sig, $chr) = @_; my ($bg, $off) = @{ $ext_color_off{$sig} }; my $color = $off - 0x3f + ord $chr; - $color += 10 if $color > 213; + $color += 10 if $color > 214; ($bg ? 'x' : 'X') . (1+int($color / 36)) . $ext_color_al[$color % 36]; }; sub control2format { -- cgit v1.2.3