1
0
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:
Sebastien Helleu
2009-01-04 10:38:11 +01:00
parent 88aa905ee3
commit ce3091c75f
4 changed files with 30 additions and 9 deletions
+5
View File
@@ -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,