1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Fix bug introduced with auto messages

This commit is contained in:
RaidMax
2019-02-19 19:39:09 -06:00
parent 3d5e91dbed
commit 5755775b85
9 changed files with 27 additions and 20 deletions

View File

@ -53,6 +53,7 @@ namespace WebfrontCore.Controllers
.OrderBy(i => i)
.ToList(),
HasActivePenalty = activePenalties.Count > 0,
ActivePenaltyType = activePenalties.Count > 0 ? activePenalties.First().Type.ToString() : null,
Online = Manager.GetActiveClients().FirstOrDefault(c => c.ClientId == client.ClientId) != null,
TimeOnline = (DateTime.UtcNow - client.LastConnection).TimeSpanText(),
LinkedAccounts = client.LinkedAccounts