Try to improve PC93 discrimination between talk and chat
[spider.git] / perl / DXProt.pm
index 596f1f08d3a1256d1ddfab84a815b6be674feee3..7ad886fd16bc9f1cc8462077395fb32ec49c14fc 100644 (file)
@@ -783,7 +783,21 @@ sub announce
 
 sub chat
 {
-       goto &announce;
+       my $self = shift;
+       my $line = shift;
+       my $isolate = shift;
+       my $to = shift;
+       my $target = shift;
+       my $text = shift;
+       my ($filter, $hops);
+
+       if ($self->{annfilter}) {
+               ($filter, $hops) = $self->{annfilter}->it(@_);
+               return unless $filter;
+       }
+       if (($self->is_spider || $self->is_ak1a) && $_[1] ne $main::mycall) {
+               send_prot_line($self, $filter, $hops, $isolate, $line);
+       }
 }