X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute.pm;h=99b4b2b1e73d42fd1bc9cdfe2b4b68e43c036dc9;hb=refs%2Fheads%2Fstaging;hp=3f264846bd74ff4210b9276e7c6ce7e4e542ab44;hpb=8fa1ac1083c4a4d1b2916933ca49d00d2fad2d8b;p=spider.git diff --git a/perl/Route.pm b/perl/Route.pm index 3f264846..99b4b2b1 100644 --- a/perl/Route.pm +++ b/perl/Route.pm @@ -25,15 +25,15 @@ use strict; use vars qw(%list %valid $filterdef $maxlevel); %valid = ( - parent => '0,Parent Calls,parray', call => "0,Callsign", - flags => "0,Flags,phex", + city => '0,City', + cq => '0,CQ Zone', dxcc => '0,Country Code', + flags => "0,Flags,phex", + ip => '0,IP Address', itu => '0,ITU Zone', - cq => '0,CQ Zone', + parent => '0,Parent Calls,parray', state => '0,State', - city => '0,City', - ip => '0,IP Address', ); $filterdef = bless ([ @@ -224,12 +224,14 @@ sub config my $c; if ($uref) { $c = $uref->user_call; - } else { + } + else { $c = "$ucall?"; } if ((length $line) + (length $c) + 1 < $width) { $line .= $c . ' '; - } else { + } + else { $line =~ s/\s+$//; push @out, $line; $line = ' ' x ($level*2) . "$pcall->$c "; @@ -240,7 +242,8 @@ sub config $line =~ s/->$//g; $line =~ s/\s+$//; push @out, $line if length $line; - } else { + } + else { # recursion detector if ((DXChannel::get($call) && $level > 1) || $seen->{$call} || $level > $maxlevel) { return @out; @@ -420,6 +423,18 @@ sub field_prompt return $val->{$ele} || $valid{$ele}; } +sub write_cache +{ + Route::Node::write_cache(); + Route::User::write_cache(); +} + +sub read_cache +{ + Route::Node::read_cache(); + Route::User::read_cache(); +} + # # generic AUTOLOAD for accessors #