diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-06-09 12:35:44 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-06-09 12:35:44 +0200 |
commit | 49f4e4cfa468a74fdbad3c62f5770951e050a6ab (patch) | |
tree | 4fb4fbb1d84dbbb1b389eb6a72219d7ce24c04f9 | |
parent | 9f4dbd2b3bc264b57b85922df9fa3fc42f32f987 (diff) | |
download | weechat-49f4e4cfa468a74fdbad3c62f5770951e050a6ab.zip |
core: fix refresh of offline nicks (in chat) when nicklist bar is hidden
-rw-r--r-- | src/gui/gui-nicklist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui-nicklist.c b/src/gui/gui-nicklist.c index 170d28bfc..874c786dc 100644 --- a/src/gui/gui-nicklist.c +++ b/src/gui/gui-nicklist.c @@ -36,6 +36,7 @@ #include <ctype.h> #include "../core/weechat.h" +#include "../core/wee-config.h" #include "../core/wee-hdata.h" #include "../core/wee-hook.h" #include "../core/wee-infolist.h" @@ -393,6 +394,9 @@ gui_nicklist_add_nick (struct t_gui_buffer *buffer, if (visible) buffer->nicklist_visible_count++; + if (CONFIG_BOOLEAN(config_look_color_nick_offline)) + gui_buffer_ask_chat_refresh (buffer, 1); + gui_nicklist_send_signal ("nicklist_nick_added", buffer, name); return new_nick; @@ -441,6 +445,9 @@ gui_nicklist_remove_nick (struct t_gui_buffer *buffer, free (nick); + if (CONFIG_BOOLEAN(config_look_color_nick_offline)) + gui_buffer_ask_chat_refresh (buffer, 1); + gui_nicklist_send_signal ("nicklist_nick_removed", buffer, nick_removed); if (nick_removed) |