From bf6d45c620f098c84d602e9347bc7cf457c38b5a Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Thu, 28 Feb 2008 12:09:10 +0000 Subject: Do not spam dedicated server console with heartbeats. Added autocompletion of options for some commands. Made logfile_prefix not empty by default. Re-enabled `anti-kick' exploit fix. --- source/cl_console.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/cl_console.c') diff --git a/source/cl_console.c b/source/cl_console.c index e07579e..3640a7f 100644 --- a/source/cl_console.c +++ b/source/cl_console.c @@ -182,8 +182,11 @@ static void Con_Clear_f( void ) { con.display = con.current; } -static const char *Con_Dump_g( const char *partial, int state ) { - return Com_FileNameGenerator( "", ".txt", partial, qtrue, state ); +static const char *Con_Dump_g( const char *partial, int argnum, int state ) { + if( argnum == 1 ) { + return Com_FileNameGenerator( "", ".txt", partial, qtrue, state ); + } + return NULL; } /* @@ -362,7 +365,7 @@ static const cmdreg_t c_console[] = { { "togglechat2", Con_ToggleChat2_f }, { "messagemode", Con_MessageMode_f }, { "messagemode2", Con_MessageMode2_f }, - { "remotemode", Con_RemoteMode_f, CL_Connect_g }, + { "remotemode", Con_RemoteMode_f, CL_Server_g }, { "clear", Con_Clear_f }, { "clearnotify", Con_ClearNotify_f }, { "condump", Con_Dump_f, Con_Dump_g }, -- cgit v1.2.3