summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-11-05 12:13:00 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-11-05 12:13:00 +0100
commita56dc00b2f7a01ee3c52fcb49bea2638c877d1ff (patch)
tree414fbbc2d878f249fe603efab0821508e69a2d27 /src/gui
parenta3d84a8e9e93495d1a8e76cdc1aaef15c1281e4d (diff)
downloadweechat-a56dc00b2f7a01ee3c52fcb49bea2638c877d1ff.zip
Set highlight flag on line printed if there is tag "notify_highlight"
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-line.c5
1 files changed, 4 insertions, 1 deletions
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);