diff options
author | Solderpunk <solderpunk@sdf.org> | 2019-01-31 18:42:31 +0000 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2019-01-31 18:42:31 +0000 |
commit | 53e762ef88903881ee5f5511cfdc84583b6ac8b1 (patch) | |
tree | 5357f295f66b22f6ca96f23194039c26e62c2373 | |
parent | Allow quitting directly from the 'type' prompt. (diff) |
Check for problematic characters in board names.
-rwxr-xr-x | telem.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |