X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fload%2Fusdb.pl;fp=cmd%2Fload%2Fusdb.pl;h=b06f7c51b64eea0332ecb43054dddc7de4dcbfad;hb=9c415b19aaaf0497e9cc074f3df56f16fe414e82;hp=bd45547d106e8d5cd7c52a8fd054c58d7c4afe89;hpb=48e2f0092d89db018a6744d4d35b83156cbe0481;p=spider.git diff --git a/cmd/load/usdb.pl b/cmd/load/usdb.pl index bd45547d..b06f7c51 100644 --- a/cmd/load/usdb.pl +++ b/cmd/load/usdb.pl @@ -15,9 +15,6 @@ my ($self, $line) = @_; my @out; return (1, $self->msg('e5')) if $self->priv < 9; -return (1, $self->msg('e3', "load/usdb", $line)) if $line && !-r $line; -$line = "$main::data/usdbraw" unless $line; -push @out, (USDB::load($line)); -USDB::init() unless @OUT; -@out = ($self->msg('ok')) unless @out; +my $r = USDB::load($line) if $line; +USDB::init() if undef $r || $r =~ /^\d+ rec/; return (1, @out);