]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix some minor bugs in the Module Manager.
authorPeter Powell <petpow@saberuk.com>
Wed, 12 Jul 2017 11:04:42 +0000 (12:04 +0100)
committerPeter Powell <petpow@saberuk.com>
Wed, 12 Jul 2017 11:04:42 +0000 (12:04 +0100)
- Fix installation of module.
- Exit after listing modules.

modulemanager

index d44ccbeb95df357049570dc61eaf665863af372a..7471dcc77cab66c188b9e5dcad7ae9c2dafc9fd4 100755 (executable)
@@ -254,7 +254,7 @@ sub resolve_deps {
 }
 
 command 'install', 'Install a third-party module', sub {
-       for my $mod (@ARGV) {
+       for my $mod (@_) {
                my $vers = $mod =~ s/=([-0-9.]+)// ? $1 : undef;
                $mod = lc $mod;
                unless ($modules{$mod}) {
@@ -296,6 +296,7 @@ command 'list', 'List available third-party modules', sub {
                my $vers = join ' ', map { $_ eq $instver ? "\e[1m$_\e[m" : $_ } @vers;
                print "$mod ($vers) - $desc\n";
        }
+       exit 0;
 };
 
 execute_command @ARGV;