From 53e762ef88903881ee5f5511cfdc84583b6ac8b1 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Thu, 31 Jan 2019 18:42:31 +0000 Subject: Check for problematic characters in board names. --- telem.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'telem.lua') 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 -- cgit v1.2.3