mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
window->active_server used to hold non-connected servers, but that was
removed before because it created several problems, especially with scripts. however that change made /server and /disconnect annoying to use with non-connected servers. so, now we have window->connect_server as well. either active_server or connect_server is set, but never both. commands that can deal properly with non-connected servers can now use the connect_server, while everyone else happily thinks that no server is active. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2921 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
930dd40815
commit
a83366069f
5 changed files with 119 additions and 24 deletions
|
|
@ -393,6 +393,8 @@ static void cmd_window_server(const char *data)
|
|||
if (*tag == '\0')
|
||||
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
server = server_find_tag(tag);
|
||||
if (server == NULL)
|
||||
server = server_find_lookup_tag(tag);
|
||||
|
||||
if (g_hash_table_lookup(optlist, "unsticky") != NULL &&
|
||||
active_win->servertag != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue