diff --git a/Admin/Main.cs b/Admin/Main.cs index 74840b39b..823a01474 100644 --- a/Admin/Main.cs +++ b/Admin/Main.cs @@ -15,6 +15,8 @@ namespace IW4MAdmin static void Main(string[] args) { + System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.BelowNormal; + Version = 1.6; handler = new ConsoleEventDelegate(OnProcessExit); SetConsoleCtrlHandler(handler, true); diff --git a/Admin/Manager.cs b/Admin/Manager.cs index 2dcc28191..cb4635fe0 100644 --- a/Admin/Manager.cs +++ b/Admin/Manager.cs @@ -285,6 +285,7 @@ namespace IW4MAdmin GetAliases(allAliases, currentIdentityAliases); if (Origin.Alias != null) allAliases.Add(Origin.Alias); + allAliases.Add(currentIdentityAliases); return allAliases; } diff --git a/Admin/WebService.cs b/Admin/WebService.cs index 04653647e..a05dad824 100644 --- a/Admin/WebService.cs +++ b/Admin/WebService.cs @@ -758,8 +758,9 @@ namespace IW4MAdmin bool authed = ApplicationManager.GetInstance().GetClientDatabase().GetAdmins().FindAll(x => x.IP == querySet["IP"] && x.Level > Player.Permission.Trusted).Count > 0 || querySet["IP"] == "127.0.0.1"; bool recent = false; + bool individual = querySet["id"] != null; - if (querySet["id"] != null) + if (individual) { matchedPlayers.Add(ApplicationManager.GetInstance().GetClientDatabase().GetPlayer(Convert.ToInt32(querySet["id"]))); } @@ -801,18 +802,24 @@ namespace IW4MAdmin playernpID = pp.NetworkID, forumID = -1, authed = authed, - showV2Features = false + showV2Features = false, + playerAliases = new List(), + playerIPs = new List() + }; - if (!recent) + if (!recent && individual) { foreach (var a in ApplicationManager.GetInstance().GetAliases(pp)) { - eachPlayer.playerAliases = a.Names; - eachPlayer.playerIPs = a.IPS; + eachPlayer.playerAliases.AddRange(a.Names); + eachPlayer.playerIPs.AddRange(a.IPS); } } + eachPlayer.playerAliases = eachPlayer.playerAliases.Distinct().ToList(); + eachPlayer.playerIPs = eachPlayer.playerIPs.Distinct().ToList(); + eachPlayer.playerConnections = pp.Connections; eachPlayer.lastSeen = Utilities.GetTimePassed(pp.LastConnection); pInfo.Add(eachPlayer); diff --git a/Admin/lib/SharedLibrary.dll b/Admin/lib/SharedLibrary.dll index 336d26ded..559af87f0 100644 Binary files a/Admin/lib/SharedLibrary.dll and b/Admin/lib/SharedLibrary.dll differ diff --git a/Admin/version.txt b/Admin/version.txt index 112e2ed10..4b1b281cf 100644 --- a/Admin/version.txt +++ b/Admin/version.txt @@ -8,6 +8,7 @@ CHANGELOG: -prune command demotes inactive admins (defaults to 30 days if no days are specified) -confirmation message sent after kick -paginated players page +-fixed aliases Version 1.5 CHANGELOG: diff --git a/Admin/webfront/penalties.html b/Admin/webfront/penalties.html index 4a7ffa75f..e7ddedc13 100644 --- a/Admin/webfront/penalties.html +++ b/Admin/webfront/penalties.html @@ -1,34 +1,29 @@
-
Name
-
Type
-
Reason
-
Admin
-
Time
-
Remaining
+
Name
+
Type
+
Reason
+
Admin
+
Time
+
Remaining

-
+
-
+
diff --git a/Admin/webfront/players.html b/Admin/webfront/players.html index ebf8f1dd7..03f4a8167 100644 --- a/Admin/webfront/players.html +++ b/Admin/webfront/players.html @@ -1,4 +1,14 @@ +