2 # show a Route::Node thingy
4 # Copyright (c) 2001 Dirk Koopman G1TLH
9 my ($self, $line) = @_;
11 my @list = split /\s+/, $line; # generate a list of callsigns
12 @list = ($self->call) if !@list; # my channel if no callsigns
13 if ($self->priv > 5 && @list && uc $list[0] eq 'ALL') {
14 push @out, "Node Callsigns in Routing Table";
15 @list = sort map {$_->call} Route::Node::get_all();
17 my $n = int $self->width / 10;
20 push @out, join(' ', map {sprintf "%9s",$_ } splice(@list, 0, $n));
22 push @out, join(' ', map {sprintf "%9s",$_ } @list) if @list;
23 push @out, "$count Nodes";
28 foreach $call (@list) {
30 my $ref = Route::Node::get($call);
32 @out = print_all_fields($self, $ref, "Route::Node Information $call");
34 push @out, "Route::Node: $call not found";
36 push @out, "" if @list > 1;