summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-26 13:01:06 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-26 13:01:06 +0000
commit88ee09e526048f4a267e5e719a13f48f77bb823b (patch)
treedfd286e0edff0289842c226d3a57e711b1ce2e0b
parent64f9ecacbd7f34be89c9403ed968f11811523c1e (diff)
downloadirssi-88ee09e526048f4a267e5e719a13f48f77bb823b.zip
/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
-rw-r--r--src/fe-common/core/fe-windows.c14
1 files changed, 1 insertions, 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;