]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix ModuleManager error caused by a lack of arguments.
authorPeter Powell <petpow@saberuk.com>
Wed, 10 Apr 2013 05:06:53 +0000 (06:06 +0100)
committerPeter Powell <petpow@saberuk.com>
Wed, 10 Apr 2013 19:25:32 +0000 (20:25 +0100)
modulemanager

index d1212faf5770f6ce01a784123c6d8462e14ae91a..7884654af1fd07a8a5d9b939c81f1a82bf8ad94d 100755 (executable)
@@ -262,7 +262,7 @@ sub resolve_deps {
        }
 }
 
-my $action = lc shift @ARGV;
+my $action = $#ARGV > 0 ? lc shift @ARGV : 'help';
 
 if ($action eq 'install') {
        for my $mod (@ARGV) {