Fixed error, hopefuly nobody sees this commit

This commit is contained in:
Kwoth committed 2016-07-17 12:05:59 +02:00
1 parent 90329aca38
commit 1483d9d33e
1 file changed
+8 -2
+8 -2
View File
@@ -27,7 +27,13 @@ namespace NadekoBot.Classes
{
configs = JsonConvert
.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)
{
@@ -239,7 +245,7 @@ namespace NadekoBot.Classes
public override int GetHashCode()
{
return (int)((int)ServerId + Username.Length + (int)Type);
return (int)ServerId + Username.Length + (int)Type;
}
}
}