summaryrefslogtreecommitdiff
path: root/src/core
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/core
parentcd73fac2f8f27c6cb1fb52f1f6ef876786d03fc0 (diff)
downloadweechat-0b0626d98b753a53cb25bbea4b513c7402d3f945.zip
core: add option weechat.look.hotlist_add_buffer_if_away
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c7
-rw-r--r--src/core/wee-config.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index e0fd3775e..40465deab 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -89,6 +89,7 @@ struct t_config_option *config_look_highlight;
struct t_config_option *config_look_highlight_regex;
struct t_config_option *config_look_highlight_tags;
struct t_config_option *config_look_hline_char;
+struct t_config_option *config_look_hotlist_add_buffer_if_away;
struct t_config_option *config_look_hotlist_buffer_separator;
struct t_config_option *config_look_hotlist_count_max;
struct t_config_option *config_look_hotlist_count_min_msg;
@@ -1625,6 +1626,12 @@ config_weechat_init_options ()
"will draw a real line with ncurses, but may cause bugs with URL "
"selection under some terminals), wide chars are NOT allowed here"),
NULL, 0, 0, "-", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
+ config_look_hotlist_add_buffer_if_away = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "hotlist_add_buffer_if_away", "boolean",
+ N_("add any buffer to hotlist (including current or visible buffers) "
+ "if local variable \"away\" is set on buffer"),
+ NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_hotlist_buffer_separator = config_file_new_option (
weechat_config_file, ptr_section,
"hotlist_buffer_separator", "string",
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index e1191b946..73f6da86b 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -115,6 +115,7 @@ extern struct t_config_option *config_look_day_change_time_format;
extern struct t_config_option *config_look_highlight;
extern struct t_config_option *config_look_highlight_regex;
extern struct t_config_option *config_look_hline_char;
+extern struct t_config_option *config_look_hotlist_add_buffer_if_away;
extern struct t_config_option *config_look_hotlist_buffer_separator;
extern struct t_config_option *config_look_hotlist_count_max;
extern struct t_config_option *config_look_hotlist_count_min_msg;