diff options
author | Solderpunk <solderpunk@sdf.org> | 2018-12-13 20:38:48 +0000 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2018-12-13 20:38:48 +0000 |
commit | 1f721fd50208a316bd75cb55ce8a00be635189f6 (patch) | |
tree | 1a6e31ec45687218fbfa5d596f29f6f3ebe5e8fc | |
parent | Print board indices when doing a scan. (diff) |
Put asterisk after the subject of updated threads.
-rwxr-xr-x | telem.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |