mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-12 06:34:35 +00:00
Dont allow <> in names
This commit is contained in:
parent
76b7914321
commit
4e6aa6729d
1 changed files with 3 additions and 0 deletions
|
|
@ -670,6 +670,9 @@ function GameConnection::onConnect( %client, %name, %raceGender, %skin, %voice,
|
||||||
%realName = getField( %authInfo, 0 );
|
%realName = getField( %authInfo, 0 );
|
||||||
if ( $PlayingOnline && $Host::NoSmurfs )
|
if ( $PlayingOnline && $Host::NoSmurfs )
|
||||||
%name = %realName;
|
%name = %realName;
|
||||||
|
|
||||||
|
//Remove <> to not mess up tribesnext json
|
||||||
|
%name = stripChars( detag( %name ), "<>" );
|
||||||
|
|
||||||
if ( strcmp( %name, %realName ) == 0 )
|
if ( strcmp( %name, %realName ) == 0 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue