From a6ad028b7f637dfd026520d1f2c014df726b268a Mon Sep 17 00:00:00 2001 From: minima Date: Thu, 28 Jun 2001 13:32:25 +0000 Subject: [PATCH] cope with local users not being in the routing table (why!???) --- cmd/show/configuration.pl | 6 +++++- cmd/show/users.pl | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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++; } -- 2.43.0