mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02: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
3 changed files with 2 additions and 8 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue