aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-08 16:11:35 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-08 16:11:35 +0000
commitdc4d60244f8525a50434b54e79890b871675f3ad (patch)
tree2ce66a7ad196a04460d7d2248195de1255cf7478 /telem.lua
parentEnable penlight's strict mode, so that global vars *must* be declared. (diff)
Have type command look before it leaps.
Diffstat (limited to '')
-rwxr-xr-xtelem.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/telem.lua b/telem.lua
index 178448e..bcb4754 100755
--- a/telem.lua
+++ b/telem.lua
@@ -264,6 +264,8 @@ type_dispatch["r"] = do_type_reply
type_dispatch["d"] = function() return end
function do_type()
+ if current_board == "" then
+ print("Not at any board! Hit `l` to list boards, `g` to go to one.")
io.write("Read which thread? ")
local thread_id = tonumber(io.read())
if not thread_id or thread_id < 0 or thread_id > #current_board_threads then