mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
feat: also ban all older versions when banning a plugin
This commit is contained in:
parent
e58ebfdfba
commit
c9f70354d0
1 changed files with 1 additions and 1 deletions
|
|
@ -952,7 +952,7 @@ namespace Dalamud.Plugin.Internal
|
||||||
/// <returns>A value indicating whether the plugin/manifest has been banned.</returns>
|
/// <returns>A value indicating whether the plugin/manifest has been banned.</returns>
|
||||||
public bool IsManifestBanned(PluginManifest manifest)
|
public bool IsManifestBanned(PluginManifest manifest)
|
||||||
{
|
{
|
||||||
return this.bannedPlugins.Any(ban => ban.Name == manifest.InternalName && ban.AssemblyVersion == manifest.AssemblyVersion);
|
return this.bannedPlugins.Any(ban => ban.Name == manifest.InternalName && ban.AssemblyVersion >= manifest.AssemblyVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue