mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
4ca7184955
commit
90ff30fcd0
@ -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 },
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user