X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fconfiguration.pl;h=bbfdd12c321788c1fee85f19a32caa4503f70ac1;hb=125670de1ca386c044416d59935cfad9e1759c06;hp=95211a0ff3586d6ce6b081f4daac52f5994092ab;hpb=febdc9bd8f6cd065d217ba089fab4361e9980f35;p=spider.git diff --git a/cmd/show/configuration.pl b/cmd/show/configuration.pl index 95211a0f..bbfdd12c 100644 --- a/cmd/show/configuration.pl +++ b/cmd/show/configuration.pl @@ -34,8 +34,8 @@ if ($list[0] && $list[0] =~ /^NOD/) { push @l, ""; $i = 0; } - my $s = $call->{call}; - $s = sprintf "(%s)", $s if $call->{here} == 0; + my $s = $call->call; + $s = sprintf "(%s)", $s unless $call->here; push @l, $s; $i++; } @@ -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;