show all the routes
[spider.git] / cmd / show / route.pl
index 45214003ac22165ebfefc2079935b5e4ba257113..4ebebde3242dd799c8568afc2b348af6ff355aa1 100644 (file)
@@ -16,9 +16,8 @@ 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);
+               my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents);
+               push @out, $self->msg('route', $l, $parents,  join(',', map {$_->call} $ref->alldxchan));
        } else {
                push @out, $self->msg('e7', $l);
        }