summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-config.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-14 20:19:05 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-14 20:19:05 +0200
commitcb680ef9df94c3e64cd4d217b2eb64e414ad91e1 (patch)
tree69ea1e9bc39f65f4ad43353a947234c1063016dd /src/plugins/irc/irc-config.c
parent63fc9aace87a2ae57a9853144db25ac70b418dfa (diff)
downloadweechat-cb680ef9df94c3e64cd4d217b2eb64e414ad91e1.zip
irc: add option irc.look.open_pv_buffer_echo_msg (issue #2016)
Diffstat (limited to 'src/plugins/irc/irc-config.c')
-rw-r--r--src/plugins/irc/irc-config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index a3b25ac91..eb89e4fdb 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -108,6 +108,7 @@ struct t_config_option *irc_config_look_notice_welcome_redirect = NULL;
struct t_config_option *irc_config_look_notice_welcome_tags = NULL;
struct t_config_option *irc_config_look_notify_tags_ison = NULL;
struct t_config_option *irc_config_look_notify_tags_whois = NULL;
+struct t_config_option *irc_config_look_open_pv_buffer_echo_msg = NULL;
struct t_config_option *irc_config_look_part_closes_buffer = NULL;
struct t_config_option *irc_config_look_pv_buffer = NULL;
struct t_config_option *irc_config_look_pv_tags = NULL;
@@ -3401,6 +3402,13 @@ irc_config_init ()
"\"notify_highlight\""),
NULL, 0, 0, "notify_message", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ irc_config_look_open_pv_buffer_echo_msg = weechat_config_new_option (
+ irc_config_file, irc_config_section_look,
+ "open_pv_buffer_echo_msg", "boolean",
+ N_("open a private buffer on self message when capability "
+ "echo-message is enabled"),
+ NULL, 0, 0, "on", NULL, 0,
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
irc_config_look_part_closes_buffer = weechat_config_new_option (
irc_config_file, irc_config_section_look,
"part_closes_buffer", "boolean",