diff options
author | Solderpunk <solderpunk@sdf.org> | 2018-12-08 16:11:35 +0000 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2018-12-08 16:11:35 +0000 |
commit | dc4d60244f8525a50434b54e79890b871675f3ad (patch) | |
tree | 2ce66a7ad196a04460d7d2248195de1255cf7478 | |
parent | Enable penlight's strict mode, so that global vars *must* be declared. (diff) |
Have type command look before it leaps.
-rwxr-xr-x | telem.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |