1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Fix for !channel matching, patch by Borys

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3105 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-01-30 16:28:31 +00:00 committed by cras
parent 6331a7f447
commit 446b601a46

View File

@ -308,8 +308,11 @@ WINDOW_REC *window_find_closest(void *server, const char *name, int level)
/* match, but if multiple windows have the same level
we could be choosing a bad one here, eg.
name=nick1 would get nick2's query instead of
generic msgs window. */
if (g_strcasecmp(name, item->visible_name) == 0)
generic msgs window.
And check for prefixed !channel name --Borys */
if (g_strcasecmp(name, item->visible_name) == 0 ||
g_strcasecmp(name, (char *) window_item_get_target((WI_ITEM_REC *) item)) == 0)
return namewindow;
}
}