Skip to content

Commit

Permalink
Always query the mod ver for telling users if mod is deprecated, but …
Browse files Browse the repository at this point in the history
…only say its outdated for r2api & bepin
  • Loading branch information
xiaoxiao921 committed Aug 23, 2020
1 parent f6e05b2 commit 49edb4a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions CHEF/Components/Watcher/CommonIssues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,16 @@ public static async Task<bool> CheckModsVersion(string text, StringBuilder answe
// todo : re-enable me when we have consistency
// across manifest version and the version from the plugin / log

if (modName.ToLower().Contains("r2api") ||
modName.ToLower().Contains("bepin"))
var (latestVer, isDeprecated) = await IsThisLatestModVersion(modName, verFromText);
if (latestVer != null && !isDeprecated &&
(modName.ToLower().Contains("r2api") ||
modName.ToLower().Contains("bepin")))
{
var (latestVer, isDeprecated) = await IsThisLatestModVersion(modName, verFromText);
if (latestVer != null && !isDeprecated)
{
outdatedMods.AppendLine($"{modName} v{verFromText} instead of v{latestVer}");
}
else if (isDeprecated)
{
deprecatedMods.AppendLine($"{modName}");
}
outdatedMods.AppendLine($"{modName} v{verFromText} instead of v{latestVer}");
}
else if (isDeprecated)
{
deprecatedMods.AppendLine($"{modName}");
}
}
}
Expand Down

0 comments on commit 49edb4a

Please sign in to comment.