diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index ade891bd5..0fe188e37 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -2477,10 +2477,7 @@ namespace ArchiSteamFarm { Utilities.InBackground(RedeemGamesInBackground); } - if (PluginsCore.BotUsesNewChat(this)) { - ArchiHandler.SetCurrentMode(2); - } - + ArchiHandler.SetCurrentMode(2); ArchiHandler.RequestItemAnnouncements(); // Sometimes Steam won't send us our own PersonaStateCallback, so request it explicitly diff --git a/ArchiSteamFarm/Plugins/IBotHackNewChat.cs b/ArchiSteamFarm/Plugins/IBotHackNewChat.cs deleted file mode 100644 index 3fce79393..000000000 --- a/ArchiSteamFarm/Plugins/IBotHackNewChat.cs +++ /dev/null @@ -1,35 +0,0 @@ -// _ _ _ ____ _ _____ -// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___ -// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \ -// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | | -// /_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_| -// | -// Copyright 2015-2019 Ɓukasz "JustArchi" Domeradzki -// Contact: JustArchi@JustArchi.net -// | -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// | -// http://www.apache.org/licenses/LICENSE-2.0 -// | -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using JetBrains.Annotations; - -namespace ArchiSteamFarm.Plugins { - [PublicAPI] - public interface IBotHackNewChat : IPlugin { - /// - /// ASF will use this property for determining whether the bot should use new chat system. - /// Unless you know what you're doing, you should not implement this property yourself and let ASF decide. - /// - /// Bot object related to this callback. - /// Boolean indicating whether the bot should use new chat system. - bool BotUsesNewChat([NotNull] Bot bot); - } -} diff --git a/ArchiSteamFarm/Plugins/PluginsCore.cs b/ArchiSteamFarm/Plugins/PluginsCore.cs index 6676250d6..ceef86cdf 100644 --- a/ArchiSteamFarm/Plugins/PluginsCore.cs +++ b/ArchiSteamFarm/Plugins/PluginsCore.cs @@ -42,30 +42,6 @@ namespace ArchiSteamFarm.Plugins { [ImportMany] private static ImmutableHashSet ActivePlugins { get; set; } - internal static bool BotUsesNewChat(Bot bot) { - if (bot == null) { - ASF.ArchiLogger.LogNullError(nameof(bot)); - - return false; - } - - if (!HasActivePluginsLoaded) { - return true; - } - - foreach (IBotHackNewChat plugin in ActivePlugins.OfType()) { - try { - if (!plugin.BotUsesNewChat(bot)) { - return false; - } - } catch (Exception e) { - ASF.ArchiLogger.LogGenericException(e); - } - } - - return true; - } - [ItemNotNull] internal static async Task GetBotsComparer() { if (!HasActivePluginsLoaded) {