2 # show a Route::User 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, "User Callsigns in Routing Table";
15 @list = sort map {$_->call} Route::User::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 Users";
28 foreach $call (@list) {
30 my $ref = Route::User::get($call);
32 push @out, print_all_fields($self, $ref, "Route::User Information $call");
34 push @out, "Route::User: $call not found";
36 push @out, "" if @list > 1;