From dbfd7fe841147a9b7cefc6fb328a53a69a207fc4 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sat, 8 Dec 2018 18:11:46 +0000 Subject: Don't permit creation of duplicate boards. --- telem.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'telem.lua') diff --git a/telem.lua b/telem.lua index 10dd4e6..3f08735 100755 --- a/telem.lua +++ b/telem.lua @@ -138,6 +138,9 @@ function do_board() elseif string.len(board) == 0 then print("New board cancelled.") return + elseif board_names[board] ~= nil then + print("Board " .. board .. " already exists!") + return end io.write("Board topic? (Max 48 chars)") local desc = io.read() -- cgit v1.2.3