From c4089c0af986fab08ff19dce451143af849406fc Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 27 Oct 2018 09:53:57 -0400 Subject: [PATCH] Don't allow compound calls greater than 9 chars --- varicode.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/varicode.cpp b/varicode.cpp index 4ff97f2..191f62b 100644 --- a/varicode.cpp +++ b/varicode.cpp @@ -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