diff options
Diffstat (limited to 'src/fe-common/core/fe-windows.c')
-rw-r--r-- | src/fe-common/core/fe-windows.c | 14 |
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; |