summaryrefslogtreecommitdiff
path: root/source/cl_console.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-02-28 12:09:10 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-02-28 12:09:10 +0000
commitbf6d45c620f098c84d602e9347bc7cf457c38b5a (patch)
treeec075676ff09467ea910c51fb45fb37185a1ddf3 /source/cl_console.c
parent4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (diff)
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.
Diffstat (limited to 'source/cl_console.c')
-rw-r--r--source/cl_console.c9
1 files changed, 6 insertions, 3 deletions
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 },