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
// Minor improvement by Teratos
function getIPAddress(%client)
{
%port = nextToken(nextToken(%client.getAddress(), "ip", ":"), "addr", ":");
if(%client.isAIControlled()) {
%addr = "bot";
}
return (%addr $= "" ? "Local" : %addr);
%port = nextToken( nextToken(%client.getAddress(), "ip", ":"), "addr", ":");
return %addr;
}
// From Eolks