Allow Bot skins

This commit is contained in:
ChocoTaco 2019-08-21 15:51:03 -04:00
parent 0ae07cdc1f
commit 3c8959482d

View file

@ -789,12 +789,13 @@ function GameConnection::onConnect( %client, %name, %raceGender, %skin, %voice,
else
%client.nameBase = %realName;
//Allow - ChocoTaco
// Make sure that the connecting client is not trying to use a bot skin:
%temp = detag( %skin );
if ( %temp $= "basebot" || %temp $= "basebbot" )
%client.skin = addTaggedString( "base" );
else
%client.skin = addTaggedString( %skin );
//%temp = detag( %skin );
//if ( %temp $= "basebot" || %temp $= "basebbot" )
// %client.skin = addTaggedString( "base" );
//else
%client.skin = addTaggedString( %skin );
%client.voice = %voice;
%client.voiceTag = addtaggedString(%voice);