Merge pull request #102 from RaidMax/bugfix/issue-0-misc-small-fixes

small change to detemine valid anticheat log lines
This commit is contained in:
RaidMax 2020-01-20 11:57:57 -06:00 committed by GitHub
commit 23f4e14244
2 changed files with 7 additions and 1 deletions

View File

@ -516,7 +516,7 @@ namespace IW4MAdmin.Plugins.Stats
/// <returns></returns>
private bool ShouldIgnoreEvent(EFClient origin, EFClient target)
{
return ((origin?.NetworkId <= 1 && target?.NetworkId <= 1) || (origin?.ClientId <= 1 && target?.ClientId <= 1));
return ((origin?.NetworkId == 1 && target?.NetworkId == 1) || (origin?.ClientId <= 1 && target?.ClientId <= 1));
}
/// <summary>

View File

@ -25,6 +25,12 @@ namespace SharedLibraryCore.Configuration
var configContent = File.ReadAllText(_configurationPath);
_configuration = JsonConvert.DeserializeObject<T>(configContent);
}
catch (FileNotFoundException)
{
_configuration = default;
}
catch (Exception e)
{
throw new ConfigurationException("MANAGER_CONFIGURATION_ERROR")