summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-config.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-07-11 22:31:33 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-07-11 22:31:33 +0200
commitfa9f787e148302a3a67e4218c27bd99c49f603ae (patch)
treee02dad4117ac65de91ef1b53bf2f901f92a07bf3 /src/plugins/relay/relay-config.c
parentd301dd6c17b4e35c0fc2fb563bf06e22e11f4916 (diff)
downloadweechat-fa9f787e148302a3a67e4218c27bd99c49f603ae.zip
core: sort config options by name in sources
Diffstat (limited to 'src/plugins/relay/relay-config.c')
-rw-r--r--src/plugins/relay/relay-config.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c
index 7ad6d4f73..caccadf70 100644
--- a/src/plugins/relay/relay-config.c
+++ b/src/plugins/relay/relay-config.c
@@ -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",