1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

/WINDOW SERVER -sticky / -unsticky crashed if the tag wasn't given and

there was no active server in window


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1553 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-06-11 23:12:43 +00:00 committed by cras
parent 651972ab33
commit 3f2b189a4c

View File

@ -224,7 +224,7 @@ static void cmd_window_server(const char *data)
"window server", &optlist, &tag))
return;
if (*tag == '\0' &&
if (*tag == '\0' && active_win->active_server != NULL &&
(g_hash_table_lookup(optlist, "sticky") != NULL ||
g_hash_table_lookup(optlist, "unsticky") != NULL)) {
tag = active_win->active_server->tag;