fix: /B was not recognized in the cluster

This commit is contained in:
2026-07-07 13:42:59 +02:00
parent 5b37397a64
commit 3d88d8f50f
2 changed files with 8 additions and 5 deletions
+6 -5
View File
@@ -303,11 +303,12 @@ func normalizeCallsign(s string) string {
if p == "" {
continue
}
// A TRAILING /MM (maritime) or /AM (aeronautical) mobile is stripped and
// the operator's home entity is kept, so the contact still resolves to a
// country in the log (e.g. YB1SCY/AM → Indonesia). A LEADING "MM" is the
// Scotland operating prefix (MM/F4NIE) and must NOT be stripped.
if i > 0 && (p == "MM" || p == "AM") {
// A TRAILING /MM (maritime) or /AM (aeronautical) mobile, or /B (beacon), is
// stripped and the operator's home entity is kept, so the contact still
// resolves to a country in the log (e.g. YB1SCY/AM → Indonesia, 4U1UN/B →
// 4U1UN → United Nations HQ). A LEADING "MM"/"B" is a PREFIX (MM = Scotland,
// B = China: B/F4NIE) and must NOT be stripped.
if i > 0 && (p == "MM" || p == "AM" || p == "B") {
continue
}
if suffixModifiers[p] {