1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Merge pull request #1003 from ailin-nemui/fix-1002

correct fix for #997
This commit is contained in:
ailin-nemui 2019-02-02 18:21:08 +01:00 committed by GitHub
commit ee86cc197e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,8 +481,9 @@ gboolean strarray_find_dest(char **array, const TEXT_DEST_REC *dest)
g_return_val_if_fail(dest != NULL, FALSE);
g_return_val_if_fail(dest->window != NULL, FALSE);
if (dest->target == NULL && dest->window->name != NULL)
return strarray_find(array, dest->window->name) != -1 ? TRUE : FALSE;
if (dest->target == NULL)
return dest->window->name != NULL &&
strarray_find(array, dest->window->name) != -1 ? TRUE : FALSE;
item = window_item_find_window(dest->window, dest->server, dest->target);
if (item == NULL) {