X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fconfiguration.pl;h=a49ffeec990317d55cafc473b502627d150a785d;hb=d08aaa3e89259031f2d9b70a83ae194620870e7f;hp=f563b6ae38b4f07df1022477b746488a70403074;hpb=73118618254ddfa6253ccc737d780a0b9823d9e5;p=spider.git diff --git a/cmd/show/configuration.pl b/cmd/show/configuration.pl index f563b6ae..a49ffeec 100644 --- a/cmd/show/configuration.pl +++ b/cmd/show/configuration.pl @@ -46,7 +46,7 @@ if ($list[0] && $list[0] =~ /^NOD/) { foreach $node (@nodes) { next if scalar @list && !grep $node->call =~ /^$_/, @list; my $call = $node->call; - $call = "($call)" if $node->here == 0; + $call = "($call)" unless $node->here; @l = (); push @l, $call; @val = sort $node->users; @@ -64,7 +64,11 @@ if ($list[0] && $list[0] =~ /^NOD/) { } my $uref = Route::User::get($call); my $s = $call; - $s = sprintf "(%s)", $s unless $uref->here; + if ($uref) { + $s = sprintf "(%s)", $call unless $uref->here; + } else { + $s = "$call?"; + } push @l, $s; $i++; }