mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-06 05:00:21 +00:00
Bad Code
This commit is contained in:
parent
79286651bb
commit
75c93dfa64
1 changed files with 5 additions and 5 deletions
|
|
@ -963,18 +963,18 @@ function GameConnection::onConnect( %client, %name, %raceGender, %skin, %voice,
|
|||
if($Host::GuidCheck)
|
||||
{
|
||||
// If we don't have a GUID try to find one somewhere.
|
||||
if(! %client.guid || %client.guid $= "")
|
||||
if(!%client.guid || %client.guid $= "")
|
||||
{
|
||||
%client.guid = getField(%client.getAuthInfo(),3);
|
||||
}
|
||||
// If we don't have a name, try to get one.
|
||||
if(!%name || %name $= "")
|
||||
if(%name $= "")
|
||||
{
|
||||
%name = getField(%client.getAuthInfo(),0);
|
||||
%client.nameBase = %name;
|
||||
%name = getField(%client.getAuthInfo(),0);
|
||||
%client.nameBase = %name;
|
||||
}
|
||||
// If we still don't have a GUID or name, time to boot the player (unless a local game).
|
||||
if(getIPAddress(%client) !$= "Local" && (!%client.guid $= "" || %name $= ""))
|
||||
if(getIPAddress(%client) !$= "Local" && (%client.guid $= "" || %name $= ""))
|
||||
{
|
||||
echo("No name/GUID kick for CID (" @ %client @ ") with IP (" @ getIPAddress(%client) @ ")");
|
||||
KickByCID(%client, "You joined the server with a blank name and/or GUID. Try rejoining.",2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue