From 7e0219ebfde02d7c1d696aa7121198662c9f2fa0 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sat, 8 Dec 2018 13:34:14 +0000 Subject: Use thread and post terms more consistently. --- telem.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'telem.lua') diff --git a/telem.lua b/telem.lua index c20a185..ce6bd87 100755 --- a/telem.lua +++ b/telem.lua @@ -147,11 +147,11 @@ end function do_list() for _,b in pairs(board_names) do - local posts = -3 -- Don't want to count "topic" file or "." or ".." + local threads = -3 -- Don't want to count "topic" file or "." or ".." for topic in lfs.dir(path.join(_BBS_ROOT, "boards", b)) do - posts = posts +1 + threads = threads +1 end - print(string.format("%s [%d posts]", b, posts)) + print(string.format("%s [%d threads]", b, threads)) end end @@ -161,8 +161,7 @@ function do_messages() else threads = get_threads(current_board) for i, thread in ipairs(threads) do - print(tostring(i), os.date("%x %H:%M", thread.timestamp), thread.author, thread.subject) ---, tostring(thread.post_count)) + print(tostring(i), os.date("%x %H:%M", thread.timestamp), thread.author, thread.subject, "("..tostring(thread.post_count).." posts)") end end current_thread_index = threads -- cgit v1.2.3