From 446b601a46baa4bc72032477d6658961df4c044a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 30 Jan 2003 16:28:31 +0000 Subject: [PATCH] Fix for !channel matching, patch by Borys git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3105 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-windows.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index 6eb4707a..06621c77 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -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; } }