summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-config.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-11-23 10:38:09 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-11-23 10:38:09 +0100
commit4f4045fb845961564e4ccf84c2ce4b36285dae94 (patch)
treef06cdfdb48edc2be0c1491b59ffdac09372d5b3a /src/plugins/irc/irc-config.c
parent570beab90afe7ae0715162d39ba50cabf6ac0aa2 (diff)
downloadweechat-4f4045fb845961564e4ccf84c2ce4b36285dae94.zip
irc: rename server option "sasl_disconnect_on_fail" to "sasl_fail", change type to integer (enum)
New possible values are: - "continue": ignore the SASL failed (continue connection to server without authentication) - "reconnect": disconnect and schedule a reconnection to server - "disconnect": disconnect
Diffstat (limited to 'src/plugins/irc/irc-config.c')
-rw-r--r--src/plugins/irc/irc-config.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 1d9eb392a..3826f40d1 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -1772,12 +1772,15 @@ irc_config_server_new_option (struct t_config_file *config_file,
callback_change, callback_change_data,
NULL, NULL);
break;
- case IRC_SERVER_OPTION_SASL_DISCONNECT_ON_FAIL:
+ case IRC_SERVER_OPTION_SASL_FAIL:
new_option = weechat_config_new_option (
config_file, section,
- option_name, "boolean",
- N_("disconnect if SASL authentication fails (to prevent hostname leaks)"),
- NULL, 0, 0,
+ option_name, "integer",
+ N_("action to perform if SASL authentication fails: "
+ "\"continue\" to ignore the authentication problem, "
+ "\"reconnect\" to schedule a reconnection to the server, "
+ "\"disconnect\" to disconnect from server"),
+ "continue|reconnect|disconnect", 0, 0,
default_value, value,
null_value_allowed,
callback_check_value, callback_check_value_data,