From: martin f. krafft Date: Sat, 4 Sep 2021 00:04:55 +0000 (+0200) Subject: Trim final space from saved trigger lines X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a3ad360011dc2b9093ff070ecfcbefd0a58c3d02;p=irssi-scripts.irssi.org.git Trim final space from saved trigger lines /trigger save would end lines with a trailing space, which makes Git complain about it. There's no reason this space needs to exist, so let's get rid of it. Signed-off-by: martin f. krafft --- diff --git a/scripts/trigger.pl b/scripts/trigger.pl index 1c41537..95ab3f1 100644 --- a/scripts/trigger.pl +++ b/scripts/trigger.pl @@ -23,7 +23,7 @@ use Text::ParseWords; use IO::File; use vars qw($VERSION %IRSSI); -$VERSION = '1.2.5'; +$VERSION = '1.2.6'; %IRSSI = ( authors => 'Wouter Coekaerts', contact => 'wouter@coekaerts.be', @@ -31,7 +31,7 @@ $VERSION = '1.2.5'; description => 'execute a command or replace text, triggered by an event in irssi', license => 'GPLv2 or later', url => 'http://wouter.coekaerts.be/irssi/', - changed => '2022-01-02', + changed => '2022-09-13', ); sub cmd_help { @@ -1018,6 +1018,7 @@ sub to_string { $string .= '-' . $param . param_to_string($trigger->{$param}); } } + $string =~ s/\s+$//; return $string; }