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

modify iw6x parser to default game log vars temporarily, small amount of code cleanup to git rid of warnings

This commit is contained in:
RaidMax
2020-11-12 20:39:56 -06:00
parent f5c2f92652
commit 057de452e7
7 changed files with 37 additions and 8 deletions

View File

@ -10,6 +10,7 @@ using SharedLibraryCore.Interfaces;
using Stats.Dtos;
using StatsWeb.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
@ -88,7 +89,7 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers
SentAfter = whenLower
});
return View("_MessageContext", messages.Results);
return View("_MessageContext", messages.Results.ToList());
}
[HttpGet("Message/Find")]
@ -187,13 +188,13 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers
// we want to show anything related to the automated offense
else
{
return View("_MessageContext", new[]
return View("_MessageContext", new List<MessageResponse>
{
new ChatInfo()
new MessageResponse()
{
ClientId = penalty.OffenderId,
Message = penalty.AutomatedOffense,
Time = penalty.When
When = penalty.When
}
});
}