aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-08 13:34:14 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-08 13:34:14 +0000
commit7e0219ebfde02d7c1d696aa7121198662c9f2fa0 (patch)
treee703f158037ec0bbf1524a419040fcfa9610f613 /telem.lua
parentRemove needless global vars. (diff)
Use thread and post terms more consistently.
Diffstat (limited to '')
-rwxr-xr-xtelem.lua9
1 files changed, 4 insertions, 5 deletions
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