From 90ff30fcd01cd15323a6d2d5fd9797660021b475 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 5 May 2000 22:34:46 +0000 Subject: Removed the "No such window" message - it was annoying :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@199 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/module-formats.c | 1 - src/fe-common/core/module-formats.h | 1 - src/fe-common/core/windows.c | 8 ++------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/fe-common/core/module-formats.c b/src/fe-common/core/module-formats.c index 358f467c..5a12f6fc 100644 --- a/src/fe-common/core/module-formats.c +++ b/src/fe-common/core/module-formats.c @@ -34,7 +34,6 @@ FORMAT_REC fecommon_core_formats[] = { "daychange", "Day changed to ${[-2.0]1}-$[-2.0]0 $2", 3, { 1, 1, 1 } }, { "talking_with", "You are now talking with %_$0%_", 1, { 0 } }, { "refnum_too_low", "Window number must be greater than 1", 0 }, - { "refnum_not_found", "No such window: $0", 1, { 0 } }, { "windowlist_header", "Ref Name Active item Server Level", 0 }, { "windowlist_line", "$[3]0 %|$[20]1 $[15]2 $[15]3 $4", 5, { 1, 0, 0, 0, 0 } }, { "windowlist_footer", "", 0 }, diff --git a/src/fe-common/core/module-formats.h b/src/fe-common/core/module-formats.h index db94140e..8b9a6375 100644 --- a/src/fe-common/core/module-formats.h +++ b/src/fe-common/core/module-formats.h @@ -11,7 +11,6 @@ enum { IRCTXT_DAYCHANGE, IRCTXT_TALKING_WITH, IRCTXT_REFNUM_TOO_LOW, - IRCTXT_REFNUM_NOT_FOUND, IRCTXT_WINDOWLIST_HEADER, IRCTXT_WINDOWLIST_LINE, IRCTXT_WINDOWLIST_FOOTER, diff --git a/src/fe-common/core/windows.c b/src/fe-common/core/windows.c index 6587a4e8..538b63ac 100644 --- a/src/fe-common/core/windows.c +++ b/src/fe-common/core/windows.c @@ -398,15 +398,11 @@ static void cmd_window_refnum(const char *data) { WINDOW_REC *window; - if (!is_numeric(data, 0)) { - printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_REFNUM_NOT_FOUND, data); + if (!is_numeric(data, 0)) return; - } window = window_find_refnum(atoi(data)); - if (window == NULL) - printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_REFNUM_NOT_FOUND, data); - else + if (window != NULL) window_set_active(window); } -- cgit v1.2.3