summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-01-30 11:41:06 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-01-30 11:41:06 +0100
commit9259442dbfbb51695a7f9c427da589fc1f92420d (patch)
treea66f959ccf1bce41481dca238b24406fba52d4da /src/core
parentbf3241208b553babdeb851d684060b81d30edc72 (diff)
downloadweechat-9259442dbfbb51695a7f9c427da589fc1f92420d.zip
core: add support of date and tags in messages displayed in buffers with free content, add function printf_y_date_tags (closes #1746)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c8
-rw-r--r--src/core/wee-upgrade.c5
2 files changed, 8 insertions, 5 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 6d916f0a4..219c0400e 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -5170,10 +5170,10 @@ COMMAND_CALLBACK(print)
{
if (free_content)
{
- gui_chat_printf_y (ptr_buffer, y,
- "%s%s",
- (prefix) ? prefix : "",
- text2);
+ gui_chat_printf_y_date_tags (ptr_buffer, y, date, tags,
+ "%s%s",
+ (prefix) ? prefix : "",
+ text2);
}
else
{
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 090c5be9a..48c859416 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -659,7 +659,10 @@ upgrade_weechat_read_buffer_line (struct t_infolist *infolist)
case GUI_BUFFER_TYPE_FREE:
new_line = gui_line_new (upgrade_current_buffer,
infolist_integer (infolist, "y"),
- 0, 0, NULL, NULL,
+ infolist_time (infolist, "date"),
+ infolist_time (infolist, "date_printed"),
+ infolist_string (infolist, "tags"),
+ NULL,
infolist_string (infolist, "message"));
if (new_line)
gui_line_add_y (new_line);