summaryrefslogtreecommitdiff
path: root/src/game/g_svcmds.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-04-22 22:32:46 +0000
committerTim Angus <tim@ngus.net>2006-04-22 22:32:46 +0000
commit7849c3bf85b8a4ac41161c4fc4a9c33c19c47879 (patch)
tree43e49849a4132e53563e1ccd655dc870e3bfa7b4 /src/game/g_svcmds.c
parent44dfc684669756cf8a05e74e47a45649fa163cab (diff)
* tjw's server comms patch
Diffstat (limited to 'src/game/g_svcmds.c')
-rw-r--r--src/game/g_svcmds.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c
index ca093c8e..30caab0d 100644
--- a/src/game/g_svcmds.c
+++ b/src/game/g_svcmds.c
@@ -577,9 +577,20 @@ qboolean ConsoleCommand( void )
trap_SendServerCommand( -1, va( "print \"server: %s\n\"", ConcatArgs( 1 ) ) );
return qtrue;
}
+ else if( !Q_stricmp( cmd, "chat" ) )
+ {
+ trap_SendServerCommand( -1, va( "chat \"%s\" -1 0", ConcatArgs( 1 ) ) );
+ G_Printf( "chat: %s\n", ConcatArgs( 1 ) );
+ return qtrue;
+ }
+ else if( !Q_stricmp( cmd, "cp" ) )
+ {
+ trap_SendServerCommand( -1, va( "cp \"%s\"", ConcatArgs( 1 ) ) );
+ G_Printf( "cp: %s\n", ConcatArgs( 1 ) );
+ return qtrue;
+ }
- // everything else will also be printed as a say command
- trap_SendServerCommand( -1, va( "print \"server: %s\n\"", ConcatArgs( 0 ) ) );
+ G_Printf( "unknown command: %s\n", cmd );
return qtrue;
}