mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 10:13:12 +02:00
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
This commit is contained in:
@@ -32,6 +32,15 @@
|
||||
#define NI_MAXHOST 256
|
||||
#endif
|
||||
|
||||
enum t_irc_server_sasl_fail
|
||||
{
|
||||
IRC_SERVER_SASL_FAIL_CONTINUE = 0,
|
||||
IRC_SERVER_SASL_FAIL_RECONNECT,
|
||||
IRC_SERVER_SASL_FAIL_DISCONNECT,
|
||||
/* number of SASL fail options */
|
||||
IRC_SERVER_NUM_SASL_FAIL,
|
||||
};
|
||||
|
||||
enum t_irc_server_option
|
||||
{
|
||||
IRC_SERVER_OPTION_ADDRESSES = 0, /* server addresses (IP/name with port) */
|
||||
@@ -49,7 +58,7 @@ enum t_irc_server_option
|
||||
IRC_SERVER_OPTION_SASL_USERNAME, /* username for SASL authentication */
|
||||
IRC_SERVER_OPTION_SASL_PASSWORD, /* password for SASL authentication */
|
||||
IRC_SERVER_OPTION_SASL_TIMEOUT, /* timeout for SASL authentication */
|
||||
IRC_SERVER_OPTION_SASL_DISCONNECT_ON_FAIL, /* disconnect on SASL fail */
|
||||
IRC_SERVER_OPTION_SASL_FAIL, /* action on SASL fail */
|
||||
IRC_SERVER_OPTION_AUTOCONNECT, /* autoconnect to server at startup */
|
||||
IRC_SERVER_OPTION_AUTORECONNECT, /* autoreconnect when disconnected */
|
||||
IRC_SERVER_OPTION_AUTORECONNECT_DELAY, /* delay before trying again reco */
|
||||
|
||||
Reference in New Issue
Block a user