mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 15:57:12 +00:00
28 lines
526 B
Perl
28 lines
526 B
Perl
#
|
|
# 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 = Route::get($l);
|
|
if ($ref) {
|
|
my $parents = join ',', $ref->parents;
|
|
my $dxchan = $ref->dxchan;
|
|
push @out, $self->msg('route', $l, $parents, $dxchan->call);
|
|
} else {
|
|
push @out, $self->msg('e7', $l);
|
|
}
|
|
}
|
|
|
|
return (1, @out);
|