summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 7246a25a..912e9dd9 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -996,7 +996,12 @@ void ClientUserinfoChanged( int clientNum )
// check for malformed or illegal info strings
if( !Info_Validate(userinfo) )
- strcpy( userinfo, "\\name\\badinfo" );
+ {
+ trap_SendServerCommand( ent - g_entities,
+ "disconnect \"illegal or malformed userinfo\n\"" );
+ trap_DropClient( ent - g_entities,
+ "dropped: illegal or malformed userinfo");
+ }
// stickyspec toggle
s = Info_ValueForKey( userinfo, "cg_stickySpec" );