X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdx.pl;h=0728c650dbd20918d580788d91f0bcd52fa9c537;hb=3b26752b143965dec4a078106b98c960dd8c2fee;hp=fd3adeb0c2a9e0520968f81c7c2a6e7b32436f56;hpb=da65011693cc9a7a33f09424f7a19a51937d986c;p=spider.git diff --git a/cmd/show/dx.pl b/cmd/show/dx.pl index fd3adeb0..0728c650 100644 --- a/cmd/show/dx.pl +++ b/cmd/show/dx.pl @@ -86,7 +86,7 @@ while ($f = shift @list) { # next field next; } if (lc $f =~ /^filt/) { - $dofilter = 1 if $self->spotsfilter; + $dofilter = 1 if $self && $self->spotsfilter; next; } if (lc $f eq 'qsl') { @@ -369,11 +369,11 @@ my @res = Spot::search($expr, $fromday, $today, $from, $to, $hint, $dofilter ? $ my $ref; my @dx; foreach $ref (@res) { - if ($self->ve7cc) { + if ($self && $self->ve7cc) { push @out, VE7CC::dx_spot($self, @$ref); } else { - if ($real) { - push @out, $self->format_dx_spot(@$ref); + if ($self && $real) { + push @out, DXCommandmode::format_dx_spot($self, @$ref); } else { push @out, Spot::formatl(@$ref); }