diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-05-31 15:16:34 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-05-31 15:16:34 +0000 |
commit | 9211a67fb4517a1ee2f3249173e21ff6f93523b6 (patch) | |
tree | b1e42959d24503c9b50b6bac00a26f63c30f05c9 | |
parent | d0babb2896e37fe135a608ed3e975fa8535fcd48 (diff) | |
download | weechat-9211a67fb4517a1ee2f3249173e21ff6f93523b6.zip |
Improved channel highlight (priority to message vs join/part)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/gui/curses/gui-display.c | 7 | ||||
-rw-r--r-- | weechat/ChangeLog | 3 | ||||
-rw-r--r-- | weechat/src/gui/curses/gui-display.c | 7 |
4 files changed, 14 insertions, 6 deletions
@@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2004-03-27 +ChangeLog - 2004-05-31 Version 0.0.6 (under dev!): + * improved channel highlight (priority to message vs join/part) * fixed bug when opened private win and remote user changes his nick * /query command added (starts private conversation) * IRC messages 476, 477 added 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); + } } } } diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 5b2e2dee3..c8f9bc450 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2004-03-27 +ChangeLog - 2004-05-31 Version 0.0.6 (under dev!): + * improved channel highlight (priority to message vs join/part) * fixed bug when opened private win and remote user changes his nick * /query command added (starts private conversation) * IRC messages 476, 477 added diff --git a/weechat/src/gui/curses/gui-display.c b/weechat/src/gui/curses/gui-display.c index 12a314b26..310493c3a 100644 --- a/weechat/src/gui/curses/gui-display.c +++ b/weechat/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); + } } } } |