merged back NEW_ROUTE into trunk
[spider.git] / cmd / show / route.pl
index 95497d2d9d02c96806e332def3ff97a84b92126d..45214003ac22165ebfefc2079935b5e4ba257113 100644 (file)
@@ -14,9 +14,11 @@ 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 = join ',', $ref->parents;
+               my $dxchan = $ref->dxchan;
+               push @out, $self->msg('route', $l, $parents,  $dxchan->call);
        } else {
                push @out, $self->msg('e7', $l);
        }