aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-08 18:11:46 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-08 18:11:46 +0000
commitdbfd7fe841147a9b7cefc6fb328a53a69a207fc4 (patch)
treecb5470470d4fb99acb637dc270cc6bdb46aaa486 /telem.lua
parentMake board/message listing formatting a bit prettier. (diff)
Don't permit creation of duplicate boards.
Diffstat (limited to 'telem.lua')
-rwxr-xr-xtelem.lua3
1 files changed, 3 insertions, 0 deletions
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()