diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:42:33 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:10 +0000 |
commit | e61ff637eb96470e297875a975c6c2ec5b4e48cd (patch) | |
tree | cb6f02d63ad18185569a26374296fcd9ea23938c /src/game | |
parent | 072babaf3ad07e65560db7861f8fe91bdbe1456a (diff) |
* Cleanup info_validate function and enforce that connecting clients must pass it (with thanks to Byron Johnson)
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_client.c | 7 |
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" ); |