aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-13 20:38:48 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-13 20:38:48 +0000
commit1f721fd50208a316bd75cb55ce8a00be635189f6 (patch)
tree1a6e31ec45687218fbfa5d596f29f6f3ebe5e8fc /telem.lua
parentPrint board indices when doing a scan. (diff)
Put asterisk after the subject of updated threads.
Diffstat (limited to 'telem.lua')
-rwxr-xr-xtelem.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/telem.lua b/telem.lua
index 261fe2f..d5eeeba 100755
--- a/telem.lua
+++ b/telem.lua
@@ -278,9 +278,13 @@ function do_messages()
print(string.rep("-",79))
-- Messages
for i, thread in ipairs(current_board_threads) do
+ local updated_str = ""
+ if thread.updated > current_board.last_scanned and thread.updated_by ~= username then
+ updated_str = " (*)"
+ end
print(string.format("%3d %s %s %s [%3d posts]", i, os.date("%x", thread.timestamp),
colourise("yellow", stringx.ljust(thread.author,16)),
- stringx.ljust(thread.subject,50),
+ stringx.ljust(thread.subject .. updated_str,50),
thread.post_count))
end
-- Separator