2 # show/node [<node> | <node> ]
4 # This command either lists all nodes known about
5 # or the ones specified on the command line together
6 # with some information that is relavent to them
8 # This command isn't and never will be compatible with AK1A
10 # A special millenium treat just for G4PDQ
12 # Copyright (c) 2000 Dirk Koopman G1TLH
17 my ($self, $line) = @_;
18 return (1, $self->msg('e5')) unless $self->priv >= 1;
22 my @call = map {uc $_} split /\s+/, $line;
26 # search thru the user for nodes
29 my ($action, $key, $data) = (0,0,0);
30 for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
31 if ($data =~ m{sort => '[ACRSX]'}) {
39 foreach $call (@call) {
40 my $clref = DXCluster->get_exact($call);
41 my $uref = DXUser->get_current($call);
44 my $pcall = sprintf "%-11s", $call;
45 push @out, $self->msg('snode1') unless @out > 0;
48 $sort = "Spider" if $uref->is_spider;
49 $sort = "AK1A " if $uref->is_ak1a;
50 $sort = "Clx " if $uref->is_clx;
51 $sort = "User " if $uref->is_user;
52 $sort = "BBS " if $uref->is_bbs;
53 $sort = "DXNet " if $uref->is_dxnet;
54 $sort = "ARClus" if $uref->is_arcluster;
56 push @out, $self->msg('snode3', $call);
59 if ($call eq $main::mycall) {
61 $ver = $main::version;
63 $ver = $clref->pcversion if $clref && $clref->pcversion;
66 my ($major, $minor, $subs) = unpack("AAA*", $ver) if $ver;
67 if ($uref->is_spider) {
68 push @out, $self->msg('snode2', $pcall, $sort, "$ver ");
70 push @out, $self->msg('snode2', $pcall, $sort, $ver ? "$major\-$minor.$subs" : " ");
75 return (1, @out, $self->msg('rec', $count));