more wip, ready for some testing (maybe)
[spider.git] / perl / DXChannel.pm
index 3ae6afd601dd54bc8a1930223affabf4b31bf391..d0c995d9756c3bd582e3ed2c9db8766f6b38d5a0 100644 (file)
@@ -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