mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
Fix exec of IRC command when connecting to server if server buffers are merged, and that server is not the selected server
This commit is contained in:
@@ -2430,6 +2430,11 @@ irc_protocol_cmd_001 (struct t_irc_server *server, const char *command,
|
||||
commands = weechat_string_split_command (ptr_command, ';');
|
||||
if (commands)
|
||||
{
|
||||
if (weechat_config_boolean (irc_config_look_one_server_buffer)
|
||||
&& (irc_current_server != server))
|
||||
{
|
||||
irc_server_set_current_server (server);
|
||||
}
|
||||
for (ptr_cmd = commands; *ptr_cmd; ptr_cmd++)
|
||||
{
|
||||
vars_replaced = irc_protocol_replace_vars (server, NULL,
|
||||
|
||||
Reference in New Issue
Block a user