From af27836d563152809b0ba4e9dc24ffbdbeec6271 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Tue, 7 Apr 2020 15:46:05 -0400 Subject: [PATCH] getIPaddress bug --- Classic/scripts/server.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classic/scripts/server.cs b/Classic/scripts/server.cs index 28d2577..10ba4ac 100644 --- a/Classic/scripts/server.cs +++ b/Classic/scripts/server.cs @@ -973,7 +973,7 @@ function GameConnection::onConnect( %client, %name, %raceGender, %skin, %voice, %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(%client.getIPAddress() !$= "Local" && (!%client.guid $= "" || %name $= "")) { //statEchoInfo("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); @@ -1039,7 +1039,7 @@ function GameConnection::onConnect( %client, %name, %raceGender, %skin, %voice, // From Eolks // Minor improvement by Teratos -function getIPAddress(%client) +function GameConnection::getIPAddress(%client) { %port = nextToken(nextToken(%client.getAddress(), "ip", ":"), "addr", ":"); if(%client.isAIControlled()) {