X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=a5aaa5cfebd1f122c1b68b274d166e3c613774bf;hb=17f0b57add792391822d38116e89b33c1df4e2dd;hp=6986a41aa60b1d8188dbc06d7ce4715a32eb35c1;hpb=428e91daacae4fddcabc7e6279c1fbd40edbbe91;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 6986a41a..a5aaa5cf 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -705,10 +705,10 @@ sub announce my $text = shift; my ($filter, $hops); - if ($suppress_ann_to_talk) { - my ($to, $call) = $text =~ /^\s*([\w-]+)[\s:]+([\w-]+)/; - return if ($to && $call && ((uc $to =~ /^TO?$/ && is_callsign(uc $call)) || is_callsign($call = uc $to))); - } + if ($suppress_ann_to_talk && $to ne $self->{call}) { + my $call = AnnTalk::is_talk_candidate($_[0], $text); + return if $call && Route::get($call); + } if ($self->{annfilter}) { ($filter, $hops) = $self->{annfilter}->it(@_ );