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

fix bug with chat context timestamps not parsing is different machine locales

add disallowed client names to default config
fix ping not working for targets
This commit is contained in:
RaidMax
2019-04-08 20:31:32 -05:00
parent 0e91205931
commit c1d879aa25
7 changed files with 21 additions and 6 deletions

View File

@ -1219,6 +1219,11 @@ namespace SharedLibraryCore.Commands
public override Task ExecuteAsync(GameEvent E)
{
if (E.Target == null)
{
E.Target = E.Owner.GetClientByName(E.Data).FirstOrDefault();
}
if (E.Message.IsBroadcastCommand())
{
if (E.Target == null)

View File

@ -11,6 +11,7 @@ namespace SharedLibraryCore.Configuration
public List<string> GlobalRules { get; set; }
public List<MapConfiguration> Maps { get; set; }
public List<QuickMessageConfiguration> QuickMessages {get; set;}
public List<string> DisallowedClientNames { get; set; }
public IBaseConfiguration Generate() => this;

View File

@ -22,6 +22,12 @@ namespace SharedLibraryCore.Services
/// <returns></returns>
public async Task AddPersistentMeta(string metaKey, string metaValue, EFClient client)
{
// this seems to happen if the client disconnects before they've had time to authenticate and be added
if (client.ClientId < 1)
{
return;
}
using (var ctx = new DatabaseContext())
{
var existingMeta = await ctx.EFMeta