diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-05-26 15:16:24 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-05-26 15:16:24 +0200 |
commit | 114fe22a80833eebbf6f12bced5ab62081bff1ad (patch) | |
tree | 8ab68fd6bc67ef9606bcd3c5d50a16823b028404 /src/core/wee-config.c | |
parent | 5f37c2801898c7ae2c4dbab4ce22da2274091ad6 (diff) | |
download | weechat-114fe22a80833eebbf6f12bced5ab62081bff1ad.zip |
Add new option weechat.look.confirm_quit
Diffstat (limited to 'src/core/wee-config.c')
-rw-r--r-- | src/core/wee-config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 29e536ff3..9170700e1 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -76,6 +76,7 @@ struct t_config_option *config_look_buffer_time_format; struct t_config_option *config_look_color_nicks_number; struct t_config_option *config_look_color_real_white; struct t_config_option *config_look_command_chars; +struct t_config_option *config_look_confirm_quit; struct t_config_option *config_look_day_change; struct t_config_option *config_look_day_change_time_format; struct t_config_option *config_look_highlight; @@ -1270,6 +1271,12 @@ config_weechat_init_options () "input must start with one of these chars; the slash (\"/\") is " "always considered as command prefix (example: \".$\")"), NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + config_look_confirm_quit = config_file_new_option ( + weechat_config_file, ptr_section, + "confirm_quit", "boolean", + N_("if set, /quit command must be confirmed with extra argument " + "\"-yes\" (see /help quit)"), + NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); config_look_day_change = config_file_new_option ( weechat_config_file, ptr_section, "day_change", "boolean", |