tidy up for running with 'showdx' a bit more.
[spider.git] / cmd / show / dx.pl
index 17a17d27e3e23e4fa0ec19a0aa092ddbb3699862..0728c650dbd20918d580788d91f0bcd52fa9c537 100644 (file)
@@ -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') {
@@ -372,7 +372,7 @@ foreach $ref (@res) {
        if ($self && $self->ve7cc) {
                push @out, VE7CC::dx_spot($self, @$ref);
        } else {
-               if ($real) {
+               if ($self && $real) {
                        push @out, DXCommandmode::format_dx_spot($self, @$ref);
                } else {
                        push @out, Spot::formatl(@$ref);