changed display for nodes in sh/route and sh/st
[spider.git] / cmd / show / route.pl
index 45214003ac22165ebfefc2079935b5e4ba257113..dda65bd9944caf6ab350e587ba30be92f8d42290 100644 (file)
@@ -16,7 +16,7 @@ my $l;
 foreach $l (@list) {
        my $ref = Route::get($l);
        if ($ref) {
-               my $parents = join ',', $ref->parents;
+               my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents);
                my $dxchan = $ref->dxchan;
                push @out, $self->msg('route', $l, $parents,  $dxchan->call);
        } else {