n4af / TR4W

TRLOG 4 Windows free amateur radio logging application
GNU General Public License v3.0
19 stars 6 forks source link

Check if operator login callsign is a valid callsign #667

Closed ny4i closed 1 year ago

ny4i commented 1 year ago

When the operator logs on, perform a callsign validity check on the entered call. This will prevent mistakes like entering a 0 instead of an O that I saw in Field Day. There may be valid cases where one does not want a call there so let this be an option to enforce it.

ny4i commented 1 year ago

Added code to call IsValidUSCall and IsValidCall to check. If the call is a valid US Prefix (using IsValidUSPrefix), then we check the call. If so, we go with that. I added that to handle the case of AF40 (zero) passing as a valid call in the general IsValidCall.