X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=d0c995d9756c3bd582e3ed2c9db8766f6b38d5a0;hb=b9ac5347cb32b8511a9cec13ef89c14683df995e;hp=3ae6afd601dd54bc8a1930223affabf4b31bf391;hpb=598233c22daef138cd7b0a653d3165b4a16905e2;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 3ae6afd6..d0c995d9 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -303,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