From 1f721fd50208a316bd75cb55ce8a00be635189f6 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Thu, 13 Dec 2018 20:38:48 +0000 Subject: Put asterisk after the subject of updated threads. --- telem.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3