From: Georgios Kontaxis Date: Sun, 16 Aug 2026 10:27:14 +0000 (+0000) Subject: [inputlength] use warnings X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=refs%2Fheads%2Finputlength_countdown_auto;p=irssi-scripts.irssi.org.git [inputlength] use warnings --- diff --git a/scripts/il.pl b/scripts/il.pl index b4854c3..dc1265d 100644 --- a/scripts/il.pl +++ b/scripts/il.pl @@ -23,6 +23,8 @@ # use strict; +use warnings; + use Irssi 20021105; use Irssi::TextUI; @@ -132,9 +134,9 @@ sub beancounter { # # did we have a number? # - $length =~ s/$padChar/$padNum/g if ( $padNum ne '' ); + $length =~ s/$padChar/$padNum/g if ( defined $padNum && $padNum ne '' ); - $sbItem->default_handler ( $get_size_only, "{sb $length}", undef, 1 ); + $sbItem->default_handler ( $get_size_only, "{sb $length}", "", 1 ); } Irssi::statusbar_item_register ( 'inputlength', 0, 'beancounter' );