mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 16:14:35 +00:00
Eolk Ver
Dont need "local" and "bot"
This commit is contained in:
parent
a3affcb240
commit
f1013cd9a2
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue