mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
core: sort config options by name in sources
This commit is contained in:
@@ -43,10 +43,10 @@ struct t_config_option *relay_config_look_raw_messages;
|
||||
/* relay config, color section */
|
||||
|
||||
struct t_config_option *relay_config_color_client;
|
||||
struct t_config_option *relay_config_color_status[RELAY_NUM_STATUS];
|
||||
struct t_config_option *relay_config_color_text;
|
||||
struct t_config_option *relay_config_color_text_bg;
|
||||
struct t_config_option *relay_config_color_text_selected;
|
||||
struct t_config_option *relay_config_color_status[RELAY_NUM_STATUS];
|
||||
|
||||
/* relay config, network section */
|
||||
|
||||
@@ -61,8 +61,8 @@ struct t_config_option *relay_config_network_websocket_allowed_origins;
|
||||
|
||||
/* relay config, irc section */
|
||||
|
||||
struct t_config_option *relay_config_irc_backlog_max_number;
|
||||
struct t_config_option *relay_config_irc_backlog_max_minutes;
|
||||
struct t_config_option *relay_config_irc_backlog_max_number;
|
||||
struct t_config_option *relay_config_irc_backlog_since_last_disconnect;
|
||||
struct t_config_option *relay_config_irc_backlog_tags;
|
||||
struct t_config_option *relay_config_irc_backlog_time_format;
|
||||
@@ -524,24 +524,6 @@ relay_config_init ()
|
||||
N_("text color for client description"),
|
||||
NULL, 0, 0, "cyan", NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
relay_config_color_text = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"text", "color",
|
||||
N_("text color in relay buffer"),
|
||||
NULL, 0, 0, "default", NULL, 0,
|
||||
NULL, NULL, &relay_config_refresh_cb, NULL, NULL, NULL);
|
||||
relay_config_color_text_bg = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"text_bg", "color",
|
||||
N_("background color in relay buffer"),
|
||||
NULL, 0, 0, "default", NULL, 0,
|
||||
NULL, NULL, &relay_config_refresh_cb, NULL, NULL, NULL);
|
||||
relay_config_color_text_selected = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"text_selected", "color",
|
||||
N_("text color of selected line in relay buffer"),
|
||||
NULL, 0, 0, "white", NULL, 0,
|
||||
NULL, NULL, &relay_config_refresh_cb, NULL, NULL, NULL);
|
||||
relay_config_color_status[RELAY_STATUS_CONNECTING] = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"status_connecting", "color",
|
||||
@@ -572,6 +554,24 @@ relay_config_init ()
|
||||
N_("text color for \"disconnected\" status"),
|
||||
NULL, 0, 0, "lightred", NULL, 0,
|
||||
NULL, NULL, &relay_config_refresh_cb, NULL, NULL, NULL);
|
||||
relay_config_color_text = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"text", "color",
|
||||
N_("text color in relay buffer"),
|
||||
NULL, 0, 0, "default", NULL, 0,
|
||||
NULL, NULL, &relay_config_refresh_cb, NULL, NULL, NULL);
|
||||
relay_config_color_text_bg = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"text_bg", "color",
|
||||
N_("background color in relay buffer"),
|
||||
NULL, 0, 0, "default", NULL, 0,
|
||||
NULL, NULL, &relay_config_refresh_cb, NULL, NULL, NULL);
|
||||
relay_config_color_text_selected = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"text_selected", "color",
|
||||
N_("text color of selected line in relay buffer"),
|
||||
NULL, 0, 0, "white", NULL, 0,
|
||||
NULL, NULL, &relay_config_refresh_cb, NULL, NULL, NULL);
|
||||
|
||||
/* section network */
|
||||
ptr_section = weechat_config_new_section (relay_config_file, "network",
|
||||
@@ -659,13 +659,6 @@ relay_config_init ()
|
||||
return 0;
|
||||
}
|
||||
|
||||
relay_config_irc_backlog_max_number = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"backlog_max_number", "integer",
|
||||
N_("maximum number of lines in backlog per IRC channel "
|
||||
"(0 = unlimited)"),
|
||||
NULL, 0, INT_MAX, "256", NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
relay_config_irc_backlog_max_minutes = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"backlog_max_minutes", "integer",
|
||||
@@ -674,6 +667,13 @@ relay_config_init ()
|
||||
"43200 = one month, 525600 = one year)"),
|
||||
NULL, 0, INT_MAX, "1440", NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
relay_config_irc_backlog_max_number = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"backlog_max_number", "integer",
|
||||
N_("maximum number of lines in backlog per IRC channel "
|
||||
"(0 = unlimited)"),
|
||||
NULL, 0, INT_MAX, "256", NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
relay_config_irc_backlog_since_last_disconnect = weechat_config_new_option (
|
||||
relay_config_file, ptr_section,
|
||||
"backlog_since_last_disconnect", "boolean",
|
||||
|
||||
@@ -31,10 +31,10 @@ extern struct t_config_option *relay_config_look_auto_open_buffer;
|
||||
extern struct t_config_option *relay_config_look_raw_messages;
|
||||
|
||||
extern struct t_config_option *relay_config_color_client;
|
||||
extern struct t_config_option *relay_config_color_status[];
|
||||
extern struct t_config_option *relay_config_color_text;
|
||||
extern struct t_config_option *relay_config_color_text_bg;
|
||||
extern struct t_config_option *relay_config_color_text_selected;
|
||||
extern struct t_config_option *relay_config_color_status[];
|
||||
|
||||
extern struct t_config_option *relay_config_network_allowed_ips;
|
||||
extern struct t_config_option *relay_config_network_bind_address;
|
||||
@@ -43,9 +43,10 @@ extern struct t_config_option *relay_config_network_ipv6;
|
||||
extern struct t_config_option *relay_config_network_max_clients;
|
||||
extern struct t_config_option *relay_config_network_password;
|
||||
extern struct t_config_option *relay_config_network_ssl_cert_key;
|
||||
extern struct t_config_option *relay_config_network_websocket_allowed_origins;
|
||||
|
||||
extern struct t_config_option *relay_config_irc_backlog_max_number;
|
||||
extern struct t_config_option *relay_config_irc_backlog_max_minutes;
|
||||
extern struct t_config_option *relay_config_irc_backlog_max_number;
|
||||
extern struct t_config_option *relay_config_irc_backlog_since_last_disconnect;
|
||||
extern struct t_config_option *relay_config_irc_backlog_tags;
|
||||
extern struct t_config_option *relay_config_irc_backlog_time_format;
|
||||
|
||||
Reference in New Issue
Block a user