From 88ee09e526048f4a267e5e719a13f48f77bb823b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 26 Apr 2002 13:01:06 +0000 Subject: [PATCH] /WINDOW GOTO channel|query didn't work if their server was different from the one in active window. Also removed a kludge of automatically trying to find #-prefixed channels if it wasn't given. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2716 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-windows.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index f24ddb7b..80d366e3 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -338,23 +338,11 @@ WINDOW_REC *window_find_item(SERVER_REC *server, const char *name) item = server == NULL ? NULL : window_item_find(server, name); - if (item == NULL && server == NULL) { + if (item == NULL) { /* not found from the active server - any server? */ item = window_item_find(NULL, name); } - if (item == NULL) { - char *chan; - - /* still nothing? maybe user just left the # in front of - channel, try again with it.. */ - chan = g_strdup_printf("#%s", name); - item = server == NULL ? NULL : - window_item_find(server, chan); - if (item == NULL) item = window_item_find(NULL, chan); - g_free(chan); - } - if (item == NULL) return 0;