Skip to content

Commit

Permalink
Fix Image not being recognized as a log even though mods were recogni…
Browse files Browse the repository at this point in the history
…zed in it
  • Loading branch information
xiaoxiao921 committed Aug 23, 2020
1 parent fa3e322 commit f6e05b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CHEF/Components/Watcher/CommonIssues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public static async Task<bool> CheckModsVersion(string text, StringBuilder answe
}
}

var badStuffInLog = false;

if (outdatedMods.Length > 0)
{
var outdatedModsS = outdatedMods.ToString();
Expand All @@ -127,6 +129,8 @@ public static async Task<bool> CheckModsVersion(string text, StringBuilder answe
$"{author.Mention}, looks like you don't have the latest version installed of " +
$"the following mod{(plural ? "s" : "")} :" + Environment.NewLine +
outdatedModsS);

badStuffInLog = true;
}

if (deprecatedMods.Length > 0)
Expand All @@ -137,9 +141,11 @@ public static async Task<bool> CheckModsVersion(string text, StringBuilder answe
$"{author.Mention}, looks like you have {(plural ? "a" : "")} deprecated " +
$"mod{(plural ? "s" : "")} installed. Deprecated mods usually don't work :" + Environment.NewLine +
deprecatedModsS);

badStuffInLog = true;
}

return false;
return badStuffInLog;
}
}

Expand Down

0 comments on commit f6e05b2

Please sign in to comment.