From dc4d60244f8525a50434b54e79890b871675f3ad Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sat, 8 Dec 2018 16:11:35 +0000 Subject: Have type command look before it leaps. --- telem.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'telem.lua') 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 -- cgit v1.2.3