mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
correct fix for #997
This commit is contained in:
parent
ff18e79661
commit
5b530737d4
@ -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 != NULL, FALSE);
|
||||||
g_return_val_if_fail(dest->window != NULL, FALSE);
|
g_return_val_if_fail(dest->window != NULL, FALSE);
|
||||||
|
|
||||||
if (dest->target == NULL && dest->window->name != NULL)
|
if (dest->target == NULL)
|
||||||
return strarray_find(array, dest->window->name) != -1 ? TRUE : FALSE;
|
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);
|
item = window_item_find_window(dest->window, dest->server, dest->target);
|
||||||
if (item == NULL) {
|
if (item == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user