small change to detemine valid anticheat log lines
fix new configuration generation bug as result of last pr
This commit is contained in:
parent
697a752be0
commit
a53c2f5c44
@ -516,7 +516,7 @@ namespace IW4MAdmin.Plugins.Stats
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private bool ShouldIgnoreEvent(EFClient origin, EFClient target)
|
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>
|
/// <summary>
|
||||||
|
@ -25,6 +25,12 @@ namespace SharedLibraryCore.Configuration
|
|||||||
var configContent = File.ReadAllText(_configurationPath);
|
var configContent = File.ReadAllText(_configurationPath);
|
||||||
_configuration = JsonConvert.DeserializeObject<T>(configContent);
|
_configuration = JsonConvert.DeserializeObject<T>(configContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
catch (FileNotFoundException)
|
||||||
|
{
|
||||||
|
_configuration = default;
|
||||||
|
}
|
||||||
|
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
throw new ConfigurationException("MANAGER_CONFIGURATION_ERROR")
|
throw new ConfigurationException("MANAGER_CONFIGURATION_ERROR")
|
||||||
|
Loading…
Reference in New Issue
Block a user