contest: don't publish QSO announcements when saving announced entries

Otherwise we'll flood the network with packets as the instances re-announce
each other's announcements ad infinitum.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 8 insertions(+), 1 deletions(-)

M hlog/contest/save.c
M hlog/contest/save.c +8 -1
@@ 93,7 93,14 @@ int save_qso_and_update_index(struct qso
 			   qso_get_mode(rx),
 			   qso_get_grid(rx));
 
-	announce_publish_qso(ANNOUNCE_QSO_NEW, src, &qso->uuid);
+	/*
+	 * Let everyone on the network know about the update if it was a
+	 * locally created contact.  We don't want to re-announce someone
+	 * else anonuncement since that'd lead to a flood of announcements
+	 * for the same entry.
+	 */
+	if (src != ANNOUNCE_QSO_SRC_ANNOUNCE)
+		announce_publish_qso(ANNOUNCE_QSO_NEW, src, &qso->uuid);
 
 	/*
 	 * Now, update the index