diff options
author | Solderpunk <solderpunk@sdf.org> | 2018-12-08 13:34:14 +0000 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2018-12-08 13:34:14 +0000 |
commit | 7e0219ebfde02d7c1d696aa7121198662c9f2fa0 (patch) | |
tree | e703f158037ec0bbf1524a419040fcfa9610f613 | |
parent | Remove needless global vars. (diff) |
Use thread and post terms more consistently.
Diffstat (limited to '')
-rwxr-xr-x | telem.lua | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |