From 876a0a16095317cb468bc8be7145c79f9353e573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 11 Oct 2019 20:26:34 +0200 Subject: irc: add option irc.look.display_pv_warning_address (closes #892) If the address of remote nick changes in a private buffer, a warning is displayed. --- src/plugins/irc/irc-config.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/irc/irc-config.c') diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 6943f0a5e..dd18a268c 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -70,6 +70,7 @@ struct t_config_option *irc_config_look_display_join_message; struct t_config_option *irc_config_look_display_old_topic; struct t_config_option *irc_config_look_display_pv_away_once; struct t_config_option *irc_config_look_display_pv_back; +struct t_config_option *irc_config_look_display_pv_warning_address; struct t_config_option *irc_config_look_highlight_channel; struct t_config_option *irc_config_look_highlight_pv; struct t_config_option *irc_config_look_highlight_server; @@ -2825,6 +2826,13 @@ irc_config_init () "server)"), NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + irc_config_look_display_pv_warning_address = weechat_config_new_option ( + irc_config_file, ptr_section, + "display_pv_warning_address", "boolean", + N_("display a warning in private buffer if the address of remote nick " + "has changed"), + NULL, 0, 0, "on", NULL, 0, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); irc_config_look_highlight_channel = weechat_config_new_option ( irc_config_file, ptr_section, "highlight_channel", "string", -- cgit v1.2.3