summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-input.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-01-04 22:29:30 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-01-04 22:29:30 +0100
commite88882f0ae031c2c3400a517b751c53a66b1c79f (patch)
treed3aeac5a9081d11844f6bb99324b94fd132e94ef /src/plugins/irc/irc-input.c
parent89517d44a553582e2d25d3a3796e111aa3b7a1f1 (diff)
downloadweechat-e88882f0ae031c2c3400a517b751c53a66b1c79f.zip
irc: display microseconds in some user messages (issue #649)
Diffstat (limited to 'src/plugins/irc/irc-input.c')
-rw-r--r--src/plugins/irc/irc-input.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-input.c b/src/plugins/irc/irc-input.c
index f0172b44d..299d9f7c3 100644
--- a/src/plugins/irc/irc-input.c
+++ b/src/plugins/irc/irc-input.c
@@ -174,9 +174,10 @@ irc_input_user_message_display (struct t_irc_server *server,
{
if (display_target)
{
- weechat_printf_date_tags (
+ weechat_printf_datetime_tags (
ptr_buffer,
date,
+ date_usec,
irc_protocol_tags (&ctxt, str_tags),
"%s%s -> %s%s%s: %s%s%s%s%s%s",
weechat_prefix ("network"),
@@ -195,9 +196,10 @@ irc_input_user_message_display (struct t_irc_server *server,
}
else
{
- weechat_printf_date_tags (
+ weechat_printf_datetime_tags (
ptr_buffer,
date,
+ date_usec,
irc_protocol_tags (&ctxt, str_tags),
"%s%s%s%s%s%s%s",
weechat_prefix ("action"),
@@ -211,9 +213,10 @@ irc_input_user_message_display (struct t_irc_server *server,
}
else if (ctcp_type)
{
- weechat_printf_date_tags (
+ weechat_printf_datetime_tags (
ptr_buffer,
date,
+ date_usec,
irc_protocol_tags (&ctxt, str_tags),
_("%sCTCP query to %s%s%s: %s%s%s%s%s"),
weechat_prefix ("network"),
@@ -229,9 +232,10 @@ irc_input_user_message_display (struct t_irc_server *server,
}
else if (display_target)
{
- weechat_printf_date_tags (
+ weechat_printf_datetime_tags (
ptr_buffer,
date,
+ date_usec,
irc_protocol_tags (&ctxt, str_tags),
"%s%s%s%s%s(%s%s%s%s)%s -> %s%s%s: %s",
weechat_prefix ("network"),
@@ -255,9 +259,10 @@ irc_input_user_message_display (struct t_irc_server *server,
}
else
{
- weechat_printf_date_tags (
+ weechat_printf_datetime_tags (
ptr_buffer,
date,
+ date_usec,
irc_protocol_tags (&ctxt, str_tags),
"%s%s",
irc_nick_as_prefix (