From: minima Date: Thu, 28 Jun 2001 13:32:25 +0000 (+0000) Subject: cope with local users not being in the routing table (why!???) X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6ad028b7f637dfd026520d1f2c014df726b268a;p=spider.git cope with local users not being in the routing table (why!???) --- diff --git a/cmd/show/configuration.pl b/cmd/show/configuration.pl index bbfdd12c..a49ffeec 100644 --- a/cmd/show/configuration.pl +++ b/cmd/show/configuration.pl @@ -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++; } diff --git a/cmd/show/users.pl b/cmd/show/users.pl index 320e9b4b..46d641ed 100644 --- a/cmd/show/users.pl +++ b/cmd/show/users.pl @@ -27,7 +27,11 @@ foreach $call (@val) { } 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++; }