fixed sh/c so it only show this country's nodes
[spider.git] / cmd / show / configuration.pl
index cb9f1946297d79179a720c10f675fb23016cc7ee..51c39dd07a8fa22733a429c69355cc26e498c561 100644 (file)
@@ -45,9 +45,19 @@ if ($list[0] && $list[0] =~ /^NOD/) {
                push @out, sprintf "%-12s %-12s %-12s %-12s %-12s %-12s", @l;
        }
 } else {
+       my $printall;
+       
+       $printall = 1 if @list && $list[0] =~ /^ALL/i;
+       
        # build up the screen from the Node table
        foreach $node (@nodes) {
-               next if scalar @list && !grep $node->call =~ /^$_/, @list;
+               unless ($printall) {
+                       if (@list) {
+                               next unless grep $node->call =~ /^$_/, @list;
+                       } else {
+                               next unless $node->dxcc == $self->dxcc;
+                       }
+               }
                my $call = $node->call;
                @l = ();
                $call ||= '???';