This commit is contained in:
2025-09-07 20:29:55 +02:00
parent 2815ea6ea0
commit a7716a65c7
10 changed files with 78 additions and 95 deletions

6
xml.go
View File

@@ -75,7 +75,7 @@ func LoadCountryFile() Countries {
return countries
}
func GetDXCC(dxCall string, Countries Countries) string {
func GetDXCC(dxCall string, Countries Countries) DXCC {
DXCCList := []DXCC{}
d := DXCC{}
@@ -130,10 +130,10 @@ func GetDXCC(dxCall string, Countries Countries) string {
DXCCMatch = DXCCList[0]
}
return DXCCMatch.DXCC
return DXCCMatch
} else {
Log.Errorf("Could not find %s in country list", dxCall)
}
return ""
return DXCC{}
}