Dont need "local" and "bot"
This commit is contained in:
ChocoTaco 2021-10-14 01:00:21 -04:00
parent a3affcb240
commit f1013cd9a2

View file

@ -265,14 +265,10 @@ function ClassicLoadBanlist()
} }
// From Eolks // From Eolks
// Minor improvement by Teratos
function getIPAddress(%client) function getIPAddress(%client)
{ {
%port = nextToken(nextToken(%client.getAddress(), "ip", ":"), "addr", ":"); %port = nextToken( nextToken(%client.getAddress(), "ip", ":"), "addr", ":");
if(%client.isAIControlled()) { return %addr;
%addr = "bot";
}
return (%addr $= "" ? "Local" : %addr);
} }
// From Eolks // From Eolks