summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-config.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-12-14 20:23:45 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-12-14 20:23:45 +0100
commit624083f41a6b8abc1a566b33f54bfc226d13886f (patch)
tree001df49a57b15a545efedf70d9d40004152a114a /src/plugins/irc/irc-config.c
parent8d3a55c6be20768e85bf9ac5f06174f56463a282 (diff)
downloadweechat-624083f41a6b8abc1a566b33f54bfc226d13886f.zip
irc: open channel buffers before the JOIN is received from server (autojoin and manual joins) (closes #216)
New options: - irc.look.buffer_open_before_autojoin - irc.look.buffer_open_before_join
Diffstat (limited to 'src/plugins/irc/irc-config.c')
-rw-r--r--src/plugins/irc/irc-config.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 3826f40d1..c41d0352f 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -48,6 +48,8 @@ struct t_config_section *irc_config_section_server = NULL;
/* IRC config, look section */
+struct t_config_option *irc_config_look_buffer_open_before_autojoin;
+struct t_config_option *irc_config_look_buffer_open_before_join;
struct t_config_option *irc_config_look_buffer_switch_autojoin;
struct t_config_option *irc_config_look_buffer_switch_join;
struct t_config_option *irc_config_look_color_nicks_in_names;
@@ -2325,6 +2327,22 @@ irc_config_init ()
return 0;
}
+ irc_config_look_buffer_open_before_autojoin = weechat_config_new_option (
+ irc_config_file, ptr_section,
+ "buffer_open_before_autojoin", "boolean",
+ N_("open channel buffer before the JOIN is received from server "
+ "when it is auto joined (with server option \"autojoin\"); "
+ "this is useful to open channels with always the same buffer "
+ "numbers on startup"),
+ NULL, 0, 0, "on", NULL, 0, NULL, NULL,
+ NULL, NULL, NULL, NULL);
+ irc_config_look_buffer_open_before_join = weechat_config_new_option (
+ irc_config_file, ptr_section,
+ "buffer_open_before_join", "boolean",
+ N_("open channel buffer before the JOIN is received from server "
+ "when it is manually joined (with /join command)"),
+ NULL, 0, 0, "off", NULL, 0, NULL, NULL,
+ NULL, NULL, NULL, NULL);
irc_config_look_buffer_switch_autojoin = weechat_config_new_option (
irc_config_file, ptr_section,
"buffer_switch_autojoin", "boolean",