Code: Select all
1.
void trap_SendServerCommand( int clientNum, const char *text ) {
2.
syscall( G_SEND_SERVER_COMMAND, clientNum, text );
3.
}
Code: Select all
1.
void trap_SendServerCommand( int clientNum, const char *text ) {
2.
// rain - hack - commands over 1022 chars will crash the
3.
// client upon receipt, so ignore them
4.
if( strlen( text ) > 1022 ) {
5.
G_LogPrintf( "trap_SendServerCommand( %d, ... ) length exceeds 1022.\n", clientNum );
6.
G_LogPrintf( "text [%s]\n", text );
7.
return;
8.
}
9.
syscall( G_SEND_SERVER_COMMAND, clientNum, text );
10.
}