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, "Callsigns in Routing Table";
15 @list = Route::get_all();
16 my ($ncount, $ucount);
17 my $n = int $self->width / 12;
20 push @out, join(' ', map {
21 $ncount++ if $_->isa('Route::Node');
22 $ucount++ if $_->isa('Route::User');
23 sprintf "%9s/%s",$_->call,$_->isa('Route::Node') ? 'N':'U'
24 } splice(@list, 0, $n));
26 push @out, join(' ', map {
27 $ncount++ if $_->isa('Route::Node');
28 $ucount++ if $_->isa('Route::User');
29 sprintf "%9s/%s",$_->call,$_->isa('Route::Node') ? 'N':'U'
31 push @out, "$ncount Nodes $ucount Users";
36 foreach $call (@list) {
38 my $ref = Route::get($call);
41 @out = print_all_fields($self, $ref, "$sort Information $call");
43 push @out, "Route::Node: $call not found";
45 push @out, "" if @list > 1;