1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Set highlight flag on line printed if there is tag "notify_highlight"

This commit is contained in:
Sebastien Helleu
2010-11-05 12:13:00 +01:00
parent a3d84a8e9e
commit a56dc00b2f
+4 -1
View File
@@ -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);