aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-14 10:51:03 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-14 10:51:03 +0000
commit3c8dee0ba7c937a4fa092be533de25de0951dd5e (patch)
treecc6c67c0a76ba59c30d530a3490737f980efed39 /telem.lua
parentFix bug where all posts appeared to be made at present day, present time (hah... (diff)
Permit graceful cancellation of thread saving.
Diffstat (limited to 'telem.lua')
-rwxr-xr-xtelem.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/telem.lua b/telem.lua
index 5a99e87..9b81881 100755
--- a/telem.lua
+++ b/telem.lua
@@ -440,6 +440,10 @@ end
function do_type_save()
io.write("Save thread to file: ")
local filename = io.read()
+ if string.len(filename) == 0 then
+ print("Saving cancelled.")
+ return
+ end
local ret, err = do_type_savefile(filename)
if ret == nil then print(err) end
end