mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
6331a7f447
commit
446b601a46
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user