Fixed error, hopefuly nobody sees this commit
This commit is contained in:
parent
90329aca38
commit
1483d9d33e
@ -27,7 +27,13 @@ namespace NadekoBot.Classes
|
|||||||
{
|
{
|
||||||
configs = JsonConvert
|
configs = JsonConvert
|
||||||
.DeserializeObject<ConcurrentDictionary<ulong, ServerSpecificConfig>>(
|
.DeserializeObject<ConcurrentDictionary<ulong, ServerSpecificConfig>>(
|
||||||
File.ReadAllText(filePath));
|
File.ReadAllText(filePath), new JsonSerializerSettings() {
|
||||||
|
Error = (s,e) => {
|
||||||
|
if (e.ErrorContext.Member.ToString() == "GenerateCurrencyChannels") {
|
||||||
|
e.ErrorContext.Handled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -239,7 +245,7 @@ namespace NadekoBot.Classes
|
|||||||
|
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
return (int)((int)ServerId + Username.Length + (int)Type);
|
return (int)ServerId + Username.Length + (int)Type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user