X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Froute.pl;h=d10cf17ffc573f76238c870a10faeda5fd6f97c8;hb=98b0984d0ab735a1ae2d96e36728c7e334cf5fd7;hp=95497d2d9d02c96806e332def3ff97a84b92126d;hpb=955db8c44f956cb6e0e3624061c9168e5a0cc93f;p=spider.git diff --git a/cmd/show/route.pl b/cmd/show/route.pl index 95497d2d..d10cf17f 100644 --- a/cmd/show/route.pl +++ b/cmd/show/route.pl @@ -14,9 +14,10 @@ return (1, $self->msg('e6')) unless @list; my $l; foreach $l (@list) { - my $ref = DXCluster->get_exact($l); + my $ref = Route::get($l); if ($ref) { - push @out, $self->msg('route', $l, $ref->mynode->call, $ref->dxchan->call); + my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->nodes); + push @out, $self->msg('route', $l, $parents, join(',', map {$_->call} $ref->alldxchan)); } else { push @out, $self->msg('e7', $l); }