X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=d0c995d9756c3bd582e3ed2c9db8766f6b38d5a0;hb=7046b8ba37863c3040cee17e46d100675e720eaf;hp=3b3ac62f13b84e193c0ff661981d3ba3a7981616;hpb=28788cb9ae3fb39965886dbee36eec9266b1d904;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 3b3ac62f..d0c995d9 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -113,6 +113,7 @@ $count = 0; version => '1,Node Version', build => '1,Node Build', verified => '9,Verified?,yesno', + newroute => '1,New Style Routing,yesno', ); use vars qw($VERSION $BRANCH); @@ -302,6 +303,15 @@ sub sort return @_ ? $self->{'sort'} = shift : $self->{'sort'} ; } +# find out whether we are prepared to believe this callsign on this interface +sub is_believed +{ + my $self = shift; + my $call = shift; + + return grep $call eq $_, $self->user->believe; +} + # handle out going messages, immediately without waiting for the select to drop # this could, in theory, block sub send_now @@ -637,7 +647,7 @@ sub AUTOLOAD # this clever line of code creates a subroutine which takes over from autoload # from OO Perl - Conway *$AUTOLOAD = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}}; - goto &$AUTOLOAD; + goto &$AUTOLOAD; }