mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +02:00
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
This commit is contained in:
@@ -2298,6 +2298,16 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments,
|
||||
pos_channel, keys[i]);
|
||||
}
|
||||
}
|
||||
if (manual_join
|
||||
&& weechat_config_boolean (irc_config_look_buffer_open_before_join))
|
||||
{
|
||||
/*
|
||||
* open the channel buffer immediately (do not wait for the
|
||||
* JOIN sent by server)
|
||||
*/
|
||||
irc_channel_create_buffer (
|
||||
server, IRC_CHANNEL_TYPE_CHANNEL, pos_channel, 1, 1);
|
||||
}
|
||||
}
|
||||
if (pos_space)
|
||||
strcat (new_args, pos_space);
|
||||
|
||||
Reference in New Issue
Block a user