diff options
Diffstat (limited to 'src/irc/irc-dcc.c')
-rw-r--r-- | src/irc/irc-dcc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/irc/irc-dcc.c b/src/irc/irc-dcc.c index fd1a90d5c..dc9f3f843 100644 --- a/src/irc/irc-dcc.c +++ b/src/irc/irc-dcc.c @@ -63,10 +63,13 @@ char *dcc_status_string[] = /* strings for DCC status */ void dcc_redraw (int highlight) { - gui_window_redraw_buffer (gui_buffer_get_dcc (gui_current_window)); - if (highlight) + t_gui_buffer *ptr_buffer; + + ptr_buffer = gui_buffer_get_dcc (gui_current_window); + gui_window_redraw_buffer (ptr_buffer); + if (highlight && gui_add_hotlist && (ptr_buffer->num_displayed == 0)) { - hotlist_add (highlight, NULL, gui_buffer_get_dcc (gui_current_window), 0); + hotlist_add (highlight, NULL, ptr_buffer, 0); gui_status_draw (gui_current_window->buffer, 0); } } |