X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Froute.pl;fp=cmd%2Fshow%2Froute.pl;h=95497d2d9d02c96806e332def3ff97a84b92126d;hb=955db8c44f956cb6e0e3624061c9168e5a0cc93f;hp=0000000000000000000000000000000000000000;hpb=3298d47dabb1251d9906aca6b5158b405f29383f;p=spider.git diff --git a/cmd/show/route.pl b/cmd/show/route.pl new file mode 100644 index 00000000..95497d2d --- /dev/null +++ b/cmd/show/route.pl @@ -0,0 +1,25 @@ +# +# show the routing to a node or station +# +# Copyright (c) 2001 Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my @list = map { uc } split /\s+/, $line; # list of callsigns of nodes +my @out; + +return (1, $self->msg('e6')) unless @list; + +my $l; +foreach $l (@list) { + my $ref = DXCluster->get_exact($l); + if ($ref) { + push @out, $self->msg('route', $l, $ref->mynode->call, $ref->dxchan->call); + } else { + push @out, $self->msg('e7', $l); + } +} + +return (1, @out);