Fix errors in documentation for filtering
[spider.git] / cmd / show / configuration.pl
index 95211a0ff3586d6ce6b081f4daac52f5994092ab..a49ffeec990317d55cafc473b502627d150a785d 100644 (file)
@@ -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;
@@ -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++;
                }