summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-04-24 09:07:15 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-04-24 09:07:15 +0200
commit0b0626d98b753a53cb25bbea4b513c7402d3f945 (patch)
tree955fdba32cea320c68ab2b5cc5159ede699f2380 /src/gui
parentcd73fac2f8f27c6cb1fb52f1f6ef876786d03fc0 (diff)
downloadweechat-0b0626d98b753a53cb25bbea4b513c7402d3f945.zip
core: add option weechat.look.hotlist_add_buffer_if_away
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-hotlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui-hotlist.c b/src/gui/gui-hotlist.c
index d15d84df0..9e88e085e 100644
--- a/src/gui/gui-hotlist.c
+++ b/src/gui/gui-hotlist.c
@@ -298,7 +298,9 @@ gui_hotlist_add (struct t_gui_buffer *buffer,
/* do not add buffer if it is displayed and away is not set */
away = hashtable_get (buffer->local_variables, "away");
- if ((buffer->num_displayed > 0) && (!away || !away[0]))
+ if ((buffer->num_displayed > 0)
+ && ((!away || !away[0])
+ || !CONFIG_BOOLEAN(config_look_hotlist_add_buffer_if_away)))
return NULL;
if (priority > GUI_HOTLIST_MAX)