From 3d4ef40cbe97fc74d9c95e782aa35f99c75d1202 Mon Sep 17 00:00:00 2001
From: djk <djk>
Date: Sun, 24 Oct 1999 16:25:44 +0000
Subject: [PATCH] make sure nodes only get 1 copy of an announce

---
 perl/DXProt.pm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/perl/DXProt.pm b/perl/DXProt.pm
index 97a0b0d2..741e4b33 100644
--- a/perl/DXProt.pm
+++ b/perl/DXProt.pm
@@ -291,13 +291,11 @@ sub normal
 					my $wwv = Geomag::update($main::systime, $hour, $sfi, $a, $k, "R=$r, Next K=$next$alarm", $decode_dk0wcy, $field[5], $r);
 				}
 				
-				return if $field[2] eq $main::mycall; # it's routed to me
 			} else {
 				route($field[2], $line);
-				return;			# only on a routed one
 			}
 			
-			last SWITCH;
+			return;
 		}
 		
 		if ($pcno == 13) {
@@ -913,7 +911,7 @@ sub send_announce
 			($filter, $hops) = Filter::it($dxchan->{annfilter}, @_, $self->{call} );
 			next unless $filter;
 		} 
-		if ($dxchan->is_ak1a) {
+		if ($dxchan->is_ak1a && $field[1] ne $main::mycall) {  # i.e not specifically routed to me
 			next if $dxchan == $self;
 			if ($hops) {
 				$routeit = $line;
-- 
2.43.0