From a24ffc0dd544d9aabd99f9a0711401f0171195e0 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Wed, 5 Jul 2006 20:30:53 +0000 Subject: [PATCH] - print warning if server tries to set cvars it shouldn't set - make warnings yellow --- code/client/cl_parse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c index b12105bb..dd890746 100644 --- a/code/client/cl_parse.c +++ b/code/client/cl_parse.c @@ -380,7 +380,7 @@ void CL_SystemInfoChanged( void ) { { if(FS_CheckDirTraversal(value)) { - Com_Printf("WARNING: Server sent invalid fs_game value %s\n", value); + Com_Printf(S_COLOR_YELLOW "WARNING: Server sent invalid fs_game value %s\n", value); continue; } @@ -393,7 +393,10 @@ void CL_SystemInfoChanged( void ) { { // If this cvar may not be modified by a server discard the value. if(!(cvar_flags & (CVAR_SYSTEMINFO | CVAR_SERVER_CREATED))) + { + Com_Printf(S_COLOR_YELLOW "WARNING: server is not allowed to set %s=%s\n", key, value); continue; + } Cvar_Set(key, value); }