mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +02:00
irc: add missing server options "sasl_timeout", "sasl_fail" and "notify" in output of /server listfull
This commit is contained in:
@@ -64,6 +64,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
* core: fix translation of message displayed after /upgrade
|
||||
* api: fix truncated process output in hook_process() (closes #266)
|
||||
* api: fix crash when reading config options with NULL value (closes #238)
|
||||
* irc: add missing server options "sasl_timeout" and "notify" in output of
|
||||
/server listfull
|
||||
* irc: use option irc.look.nick_mode_empty to display nick prefix in bar item
|
||||
"input_prompt"
|
||||
* irc: remove IRC color codes from buffer title in channels (closes #237)
|
||||
|
||||
@@ -4440,6 +4440,24 @@ irc_command_display_server (struct t_irc_server *server, int with_detail)
|
||||
weechat_printf (NULL, " sasl_password. . . . : %s%s",
|
||||
IRC_COLOR_CHAT_VALUE,
|
||||
_("(hidden)"));
|
||||
/* sasl_timeout */
|
||||
if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_SASL_TIMEOUT]))
|
||||
weechat_printf (NULL, " sasl_timeout . . . . : (%d %s)",
|
||||
IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_SASL_TIMEOUT),
|
||||
NG_("second", "seconds", IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_SASL_TIMEOUT)));
|
||||
else
|
||||
weechat_printf (NULL, " sasl_timeout . . . . : %s%d %s",
|
||||
IRC_COLOR_CHAT_VALUE,
|
||||
weechat_config_integer (server->options[IRC_SERVER_OPTION_SASL_TIMEOUT]),
|
||||
NG_("second", "seconds", weechat_config_integer (server->options[IRC_SERVER_OPTION_SASL_TIMEOUT])));
|
||||
/* sasl_fail */
|
||||
if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_SASL_FAIL]))
|
||||
weechat_printf (NULL, " sasl_fail. . . . . . : ('%s')",
|
||||
irc_server_sasl_fail_string[IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_SASL_FAIL)]);
|
||||
else
|
||||
weechat_printf (NULL, " sasl_fail. . . . . . : %s'%s'",
|
||||
IRC_COLOR_CHAT_VALUE,
|
||||
irc_server_sasl_fail_string[weechat_config_integer (server->options[IRC_SERVER_OPTION_SASL_FAIL])]);
|
||||
/* autoconnect */
|
||||
if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_AUTOCONNECT]))
|
||||
weechat_printf (NULL, " autoconnect. . . . . : (%s)",
|
||||
@@ -4634,6 +4652,14 @@ irc_command_display_server (struct t_irc_server *server, int with_detail)
|
||||
weechat_printf (NULL, " default_msg_quit . . : %s'%s'",
|
||||
IRC_COLOR_CHAT_VALUE,
|
||||
weechat_config_string (server->options[IRC_SERVER_OPTION_DEFAULT_MSG_QUIT]));
|
||||
/* notify */
|
||||
if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_NOTIFY]))
|
||||
weechat_printf (NULL, " notify . . . . . . . : ('%s')",
|
||||
IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_NOTIFY));
|
||||
else
|
||||
weechat_printf (NULL, " notify . . . . . . . : %s'%s'",
|
||||
IRC_COLOR_CHAT_VALUE,
|
||||
weechat_config_string (server->options[IRC_SERVER_OPTION_NOTIFY]));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -245,6 +245,7 @@ extern const int gnutls_cert_type_prio[];
|
||||
extern const int gnutls_prot_prio[];
|
||||
#endif
|
||||
extern struct t_irc_message *irc_recv_msgq, *irc_msgq_last_msg;
|
||||
extern char *irc_server_sasl_fail_string[];
|
||||
extern char *irc_server_options[][2];
|
||||
|
||||
extern int irc_server_valid (struct t_irc_server *server);
|
||||
|
||||
Reference in New Issue
Block a user