From 5723ee7b19543c2c381372736d6d7c663d1a891c Mon Sep 17 00:00:00 2001 From: Archi Date: Sun, 17 Mar 2024 17:16:45 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Plugins/Interfaces/IGitHubPluginUpdates.cs | 2 +- ArchiSteamFarm/SharedInfo.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Plugins/Interfaces/IGitHubPluginUpdates.cs b/ArchiSteamFarm/Plugins/Interfaces/IGitHubPluginUpdates.cs index f939bdf427b4f..6dcbaf246013b 100644 --- a/ArchiSteamFarm/Plugins/Interfaces/IGitHubPluginUpdates.cs +++ b/ArchiSteamFarm/Plugins/Interfaces/IGitHubPluginUpdates.cs @@ -145,7 +145,7 @@ public interface IGitHubPluginUpdates : IPluginUpdates { return null; } - if (string.IsNullOrEmpty(RepositoryName)) { + if (string.IsNullOrEmpty(RepositoryName) || (RepositoryName == SharedInfo.DefaultPluginTemplateGithubRepo)) { ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, nameof(RepositoryName))); return null; diff --git a/ArchiSteamFarm/SharedInfo.cs b/ArchiSteamFarm/SharedInfo.cs index 65f4501916b3b..1bb235540ae01 100644 --- a/ArchiSteamFarm/SharedInfo.cs +++ b/ArchiSteamFarm/SharedInfo.cs @@ -42,6 +42,7 @@ public static class SharedInfo { internal const string AssemblyName = nameof(ArchiSteamFarm); internal const string DatabaseExtension = ".db"; internal const string DebugDirectory = "debug"; + internal const string DefaultPluginTemplateGithubRepo = "JustArchiNET/ASF-PluginTemplate"; internal const string EnvironmentVariableArguments = $"{ASF}_ARGS"; internal const string EnvironmentVariableCryptKey = $"{ASF}_CRYPTKEY"; internal const string EnvironmentVariableCryptKeyFile = $"{EnvironmentVariableCryptKey}_FILE";