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

[issue 135] enhanced search

implement enhanced search for chat messages
This commit is contained in:
RaidMax
2020-05-22 20:29:41 -05:00
parent 7b9eb2fa5e
commit 6f9051120d
23 changed files with 1744 additions and 12 deletions

View File

@ -225,7 +225,8 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
Port = sv.Port,
EndPoint = sv.ToString(),
ServerId = serverId,
GameName = sv.GameName
GameName = sv.GameName,
HostName = sv.Hostname
};
server = serverSet.Add(server).Entity;
@ -240,6 +241,13 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
ctx.Entry(server).Property(_prop => _prop.GameName).IsModified = true;
ctx.SaveChanges();
}
if (server.HostName == null || server.HostName != sv.Hostname)
{
server.HostName = sv.Hostname;
ctx.Entry(server).Property(_prop => _prop.HostName).IsModified = true;
ctx.SaveChanges();
}
}
// check to see if the stats have ever been initialized