From a56dc00b2f7a01ee3c52fcb49bea2638c877d1ff Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 5 Nov 2010 12:13:00 +0100 Subject: [PATCH] Set highlight flag on line printed if there is tag "notify_highlight" --- src/gui/gui-line.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c index f2cc03583..3d07aef5a 100644 --- a/src/gui/gui-line.c +++ b/src/gui/gui-line.c @@ -799,6 +799,10 @@ gui_line_add (struct t_gui_buffer *buffer, time_t date, new_line->data->message = (message) ? strdup (message) : strdup (""); new_line->data->highlight = gui_line_has_highlight (new_line); + notify_level = gui_line_get_notify_level (new_line); + if (notify_level == GUI_HOTLIST_HIGHLIGHT) + new_line->data->highlight = 1; + /* add line to lines list */ gui_line_add_to_list (buffer->own_lines, new_line); @@ -823,7 +827,6 @@ gui_line_add (struct t_gui_buffer *buffer, time_t date, } else { - notify_level = gui_line_get_notify_level (new_line); if (!weechat_upgrading && (notify_level == GUI_HOTLIST_PRIVATE)) { message_for_signal = gui_chat_build_string_prefix_message (new_line);