Check correct string to ignore errors *facepalm*

This commit is contained in:
runebaas 2018-02-04 17:36:55 +01:00
parent 8d23420031
commit 46696549d7
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -42,8 +42,8 @@ namespace Geekbot.net.Lib
{
var errorString = errorMessage == "def" ? _translation.GetString(Context.Guild.Id, "errorHandler", "SomethingWentWrong") : errorMessage;
var errorObj = SimpleConextConverter.ConvertContext(Context);
if (errorObj.Message.Content.Contains("50007")) return;
if (errorObj.Message.Content.Contains("50013")) return;
if (e.Message.Contains("50007")) return;
if (e.Message.Contains("50013")) return;
_logger.Error("Geekbot", "An error ocured", e, errorObj);
if (!string.IsNullOrEmpty(errorMessage))
{