change node disconnection code to improve node clearouts
[spider.git] / cmd / show / node.pl
index e5e0eba58a00bb9ebb1ae2ffb742ef260accc5b2..4e8125514c48a73dddc7d683e246304490151641 100644 (file)
@@ -11,7 +11,7 @@
 #
 # Copyright (c) 2000 Dirk Koopman G1TLH
 #
-# $Id$
+#
 #
 
 my ($self, $line) = @_;
@@ -23,7 +23,9 @@ my @out;
 my $count;
 
 # search thru the user for nodes
-if ($call[0] eq 'ALL') {
+if (@call == 0) {
+       @call = map {$_->call} DXChannel::get_all_nodes();
+} elsif ($call[0] eq 'ALL') {
        shift @call;
        my ($action, $key, $data) = (0,0,0);
        for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
@@ -31,9 +33,7 @@ if ($call[0] eq 'ALL') {
                    push @call, $key;
                        ++$count;
                }
-       } 
-} elsif (@call == 0) {
-       @call = map {$_->call} DXChannel::get_all_nodes();  
+       }
 }
 
 my $call;
@@ -69,6 +69,7 @@ foreach $call (@call) {
        
        my ($major, $minor, $subs) = unpack("AAA*", $ver) if $ver;
        if ($uref->is_spider) {
+               $ver /= 100 if $ver > 5400;
                $ver -= 53 if $ver > 54;
                $build = "build: " . $uref->build if $uref->build;
                push @out, $self->msg('snode2', $pcall, $sort, "$ver $build");