mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
651972ab33
commit
3f2b189a4c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user