]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
[theme] help if noargs
authorbw1 <redacted>
Tue, 2 Jul 2019 15:46:54 +0000 (17:46 +0200)
committerbw1 <redacted>
Tue, 2 Jul 2019 15:46:54 +0000 (17:46 +0200)
scripts/theme.pl

index bcdd2adc433f5b6687362ca541f443955914763a..ff363d24d9ba52d19b66351cecd20ddb9292b90d 100644 (file)
@@ -7,7 +7,7 @@ use Getopt::Long qw/GetOptionsFromString/;
 
 use Irssi;
 
-$VERSION = '0.01';
+$VERSION = '0.02';
 %IRSSI = (
     authors    => 'bw1',
     contact    => 'bw1@aol.at',
@@ -15,7 +15,7 @@ $VERSION = '0.01';
     description        => 'activate, show or get theme',
     license    => 'Public Domain',
     url                => 'https://scripts.irssi.org/',
-    changed    => '2019-06-11',
+    changed    => '2019-07-02',
     modules => 'File::Basename File::Fetch File::Glob Getopt::Long',
     commands=> 'theme',
 );
@@ -172,7 +172,7 @@ sub cmd {
                }
                $list = undef;
        }
-       if (defined $phelp) {
+       if (defined $phelp || $args eq '' ) {
                cmd_help($IRSSI{name}, $server, $witem);
                $phelp = undef;
        }
git clone https://git.99rst.org/PROJECT