aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2019-01-31 18:42:31 +0000
committerSolderpunk <solderpunk@sdf.org>2019-01-31 18:42:31 +0000
commit53e762ef88903881ee5f5511cfdc84583b6ac8b1 (patch)
tree5357f295f66b22f6ca96f23194039c26e62c2373
parentAllow quitting directly from the 'type' prompt. (diff)
Check for problematic characters in board names.
-rwxr-xr-xtelem.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/telem.lua b/telem.lua
index 6a40b95..8d4a343 100755
--- a/telem.lua
+++ b/telem.lua
@@ -205,6 +205,9 @@ function do_board()
if string.len(board) > 18 then
print("Board names must be 18 characters or less!")
return
+ elseif string.find(board, "%p") or string.find(board, "%s") then
+ print("Board names may not contain spaces or punctuation!")
+ return
elseif string.len(board) == 0 then
print("New board cancelled.")
return