hirc

IRC client
Log | Files | Refs

commit f2f54d06c485e5c0e9e5f42f67dd0ec7faba5fb3
parent b3f68efb4df18f49f4e3574cfb6818c32c566a9b
Author: hhvn <dev@hhvn.uk>
Date:   Fri, 25 Feb 2022 20:46:12 +0000

Use %{time:f,s} styling for formats dealing with time

Diffstat:
Msrc/config.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -196,7 +196,7 @@ struct Config config[] = { .description = { "Turn on/off timestamps", NULL}}, {"format.ui.timestamp", 1, Val_string, - .str = "%{c:92}%{time:%H:%M,${time}}%{o} ", + .str = "%{c:92}%{time:%H:%M:%S,${time}}%{o} ", .strhandle = config_redraws, .description = { "Format of timestamps", @@ -718,7 +718,7 @@ struct Config config[] = { .description = { "Format of RPL_ENDOFWHO (315) numeric", NULL}}, {"format.rpl.whoisidle", 1, Val_string, - .str = " %{b}idle %{b}: ${3} seconds", + .str = " %{b}signon %{b}: %{time:%c,${4}}, idle: ${3} seconds", .strhandle = config_redraws, .description = { "Format of RPL_WHOISIDLE (317) numeric", NULL}}, @@ -1140,7 +1140,7 @@ struct Config config[] = { .description = { "Format of RPL_WHOISACCOUNT (330) numeric", NULL}}, {"format.rpl.topicwhotime", 1, Val_string, - .str = "set by %{nick:${3}}${3}%{o} on ${4}", + .str = "set by %{nick:${3}}${3}%{o} at %{time:%Y-%m-%d %H:%M:%S,${4}}", .strhandle = config_redraws, .description = { "Format of RPL_TOPICWHOTIME (333) numeric", NULL}},