X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fstat%2Froute_user.pl;fp=cmd%2Fstat%2Froute_user.pl;h=37a079b8cc455e97793f2b137e0a95f6d4f7b932;hb=273bb156dcab276845ac5984ccebfa2cc68b451a;hp=0000000000000000000000000000000000000000;hpb=b67b50de92dbf61ce939b42f7c74e30dc58eba41;p=spider.git diff --git a/cmd/stat/route_user.pl b/cmd/stat/route_user.pl new file mode 100644 index 00000000..37a079b8 --- /dev/null +++ b/cmd/stat/route_user.pl @@ -0,0 +1,26 @@ +# +# show a Route::User thingy +# +# Copyright (c) 2001 Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my @list = split /\s+/, $line; # generate a list of callsigns +@list = ($self->call) if !@list; # my channel if no callsigns + +my $call; +my @out; +foreach $call (@list) { + $call = uc $call; + my $ref = Route::User::get($call); + if ($ref) { + @out = print_all_fields($self, $ref, "Route::User Information $call"); + } else { + push @out, "Route::User: $call not found"; + } + push @out, "" if @list > 1; +} + +return (1, @out);