95497d2d9d02c96806e332def3ff97a84b92126d
[spider.git] / cmd / show / route.pl
1 #
2 # show the routing to a node or station
3 #
4 # Copyright (c) 2001 Dirk Koopman G1TLH
5 #
6 # $Id$
7 #
8
9 my ($self, $line) = @_;
10 my @list = map { uc } split /\s+/, $line;           # list of callsigns of nodes
11 my @out;
12
13 return (1, $self->msg('e6')) unless @list;
14
15 my $l;
16 foreach $l (@list) {
17         my $ref = DXCluster->get_exact($l);
18         if ($ref) {
19                 push @out, $self->msg('route', $l, $ref->mynode->call,  $ref->dxchan->call);
20         } else {
21                 push @out, $self->msg('e7', $l);
22         }
23 }
24
25 return (1, @out);