Don't allow compound calls greater than 9 chars

This commit is contained in:
Jordan Sherer 2018-10-27 09:53:57 -04:00
parent 5c28d154ff
commit c4089c0af9

View File

@ -1029,6 +1029,11 @@ int Varicode::isCommandChecksumed(const QString &cmd){
}
bool isValidCompoundCallsign(QStringRef callsign){
// compound calls cannot be > 9 characters after removing the /
if(callsign.toString().replace("/", "").length() > 9){
return false;
}
// compound is valid when it is:
// 1) a group call (starting with @)
// 2) an actual compound call (containing /) that is not a base call