From 9211a67fb4517a1ee2f3249173e21ff6f93523b6 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 31 May 2004 15:16:34 +0000 Subject: Improved channel highlight (priority to message vs join/part) --- src/gui/curses/gui-display.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/curses') diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index 12a314b26..310493c3a 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -1684,8 +1684,11 @@ gui_add_message (t_gui_window *window, int type, int color, char *message) } if ((window != gui_current_window) || (window->sub_lines > 0)) { - window->unread_data = 1 + window->last_line->line_with_message; - gui_redraw_window_status (gui_current_window); + if (window->unread_data < 1 + window->last_line->line_with_message) + { + window->unread_data = 1 + window->last_line->line_with_message; + gui_redraw_window_status (gui_current_window); + } } } } -- cgit v1.2.3