mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-14 15:44:34 +00:00
getIP error
Wasnt correct format
This commit is contained in:
parent
f7e2ffca04
commit
eeaa0ccf21
2 changed files with 4 additions and 4 deletions
|
|
@ -974,15 +974,15 @@ function GameConnection::onConnect( %client, %name, %raceGender, %skin, %voice,
|
||||||
%client.nameBase = %name;
|
%client.nameBase = %name;
|
||||||
}
|
}
|
||||||
// If we still don't have a GUID or name, time to boot the player (unless a local game).
|
// If we still don't have a GUID or name, time to boot the player (unless a local game).
|
||||||
if(%client.getIPAddress() !$= "Local" && (!%client.guid $= "" || %name $= ""))
|
if(getIPAddress(%client) !$= "Local" && (!%client.guid $= "" || %name $= ""))
|
||||||
{
|
{
|
||||||
//statEchoInfo("No name/GUID kick for CID (" @ %client @ ") with IP (" @ getIPAddress(%client) @ ")");
|
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);
|
KickByCID(%client, "You joined the server with a blank name and/or GUID. Try rejoining.",2);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%stuff = %client.getIPAddress();
|
%stuff = getIPAddress(%client);
|
||||||
if(strstr(%stuff, "70.240.") == 0)
|
if(strstr(%stuff, "70.240.") == 0)
|
||||||
{
|
{
|
||||||
%newPart = getSubStr(%stuff, 7, 255);
|
%newPart = getSubStr(%stuff, 7, 255);
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@ function ClassicAddWhitelist(%label, %entry)
|
||||||
function ClassicIsBanned(%client)
|
function ClassicIsBanned(%client)
|
||||||
{
|
{
|
||||||
%guid = %client.guid;
|
%guid = %client.guid;
|
||||||
%addr = %client.getIPAddress();
|
%addr = getIPAddress(%client);
|
||||||
%type = 0;
|
%type = 0;
|
||||||
|
|
||||||
for (%i = 0; %i < $ClassicPermaBans; %i++)
|
for (%i = 0; %i < $ClassicPermaBans; %i++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue