diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-09-25 13:13:05 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-09-25 13:13:05 +0000 |
commit | 95f993680be144ec40fa7f08002faf27a2e229a7 (patch) | |
tree | d1bf8e3174ffbe3e6bb332682b70c694b898da67 /source/sv_user.c | |
parent | ea8394f51c74208866a891def93c55bd6cd3529e (diff) |
Strip trailing whitespace as gi.args() expects.
Properly set maxChars value for input fields on Unix.
Diffstat (limited to 'source/sv_user.c')
-rw-r--r-- | source/sv_user.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/sv_user.c b/source/sv_user.c index 0ee0917..52a3b8b 100644 --- a/source/sv_user.c +++ b/source/sv_user.c @@ -1154,8 +1154,11 @@ void SV_ExecuteClientMessage( client_t *client ) { SV_DropClient( client, "oversize stringcmd" ); break; } - - Com_DPrintf( "ClientCommand( %s ): %s\n", client->name, buffer ); + + if( developer->integer ) { + Com_Printf( S_COLOR_BLUE "ClientCommand( %s ): %s\n", + client->name, Q_FormatString( buffer ) ); + } // malicious users may try using too many string commands if( stringCmdCount == MAX_PACKET_STRINGCMDS ) { |