diff options
Diffstat (limited to 'telem.lua')
-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 |