X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fhelp.pl;h=011519f626924268925dd17082852dedb56dc445;hb=7ab16be46aa296e9fba7b063c074bb020a9eb462;hp=f0da2f82f07dcbe2ea5caa8c48e83fe048649e02;hpb=371caba1b5b241d10e9f68bfb2b866141f3ea84e;p=spider.git diff --git a/cmd/help.pl b/cmd/help.pl index f0da2f82..011519f6 100644 --- a/cmd/help.pl +++ b/cmd/help.pl @@ -14,7 +14,6 @@ my ($self, $line) = @_; my @out; # this is naff but it will work for now -$line = "help" if !$line; my $lang = $self->lang; $lang = 'en' if !$lang; @@ -41,10 +40,11 @@ if (!open($h, "$main::localcmd/Commands_$lang.hlp")) { } my $in; -$line =~ s/![\w\/]//og; -$line =~ s/\//\.\*\//og; -$line =~ s/^\s+//og; -$line =~ s/\s+$//og; +$line =~ s/[^\w\/]//g; +$line =~ s/\//\.\*\//g; +$line =~ s/^\s+//g; +$line =~ s/\s+$//g; +$line = "help" if $line =~ /^\s*$/; # sort out aliases my $alias = CmdAlias::get_hlp($line);