]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Trim final space from saved trigger lines
authormartin f. krafft <redacted>
Sat, 4 Sep 2021 00:04:55 +0000 (02:04 +0200)
committermartin f. krafft <redacted>
Tue, 13 Sep 2022 07:58:30 +0000 (09:58 +0200)
/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 <redacted>
scripts/trigger.pl

index 1c41537c99557fcf9778c53f386472c7eb12f8cc..95ab3f1db6b7078569414169a581e810dd6cdcd5 100644 (file)
@@ -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;
 }
 
git clone https://git.99rst.org/PROJECT