From 0f08584744e99b710d2f10d02ded74c2f122568e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Wed, 28 Feb 2018 18:30:39 +0100 Subject: [PATCH] Try to update the highlight status as well in the backlog event. Updating the highlight status of a line currently isn't possible in weechat. Hopefully future weechat versions will allow this. --- matrix/events.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix/events.py b/matrix/events.py index cc54c58..55e4032 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -284,13 +284,15 @@ class MatrixBacklogEvent(MatrixEvent): tags = tags_from_line_data(data) prefix = W.hdata_string(hdata_line_data, data, 'prefix') message = W.hdata_string(hdata_line_data, data, 'message') + highlight = W.hdata_char(hdata_line_data, data, "highlight") line_data = { 'date': date, 'date_printed': print_date, 'tags_array': ','.join(tags), 'prefix': prefix, - 'message': message + 'message': message, + 'highlight': highlight } lines.append(line_data)