From 624083f41a6b8abc1a566b33f54bfc226d13886f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 14 Dec 2014 20:23:45 +0100 Subject: 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 --- src/plugins/irc/irc-config.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/plugins/irc/irc-config.c') 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", -- cgit v1.2.3