Fix bug introduced with auto messages

This commit is contained in:
RaidMax
2019-02-19 19:39:09 -06:00
parent 5d41059641
commit 74cdf8e885
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