Fix issues with tactical names

This commit is contained in:
Tim Wilkinson 2022-07-21 14:43:03 -07:00 committed by Joe AE6XE
parent f0bfad55d0
commit 9993244143
1 changed files with 8 additions and 1 deletions

View File

@ -643,7 +643,14 @@ if parms.button_save then
if nodetac:match("/") then
node, tactical = nodetac:match("^%s*([%w-]+)%s*/%s*([%w-]*)%s*$")
if tactical == "" then
if not node then
err("invalid node/tactical name")
node = nodetac:match("^([^/%s]*)")
tactical = ""
if node == "" then
err("you must set the node name")
end
elseif tactical == "" then
err("invalid node/tactical name")
end
else