mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Closes #1504
This commit is contained in:
@@ -2180,10 +2180,10 @@ namespace ArchiSteamFarm {
|
||||
using (HashSet<string>.Enumerator keysEnumerator = pendingKeys.GetEnumerator()) {
|
||||
// Initial key
|
||||
string key = keysEnumerator.MoveNext() ? keysEnumerator.Current : null;
|
||||
string previousKey = key;
|
||||
|
||||
while (!string.IsNullOrEmpty(key)) {
|
||||
string startingKey = key;
|
||||
string previousKey = key;
|
||||
|
||||
using (IEnumerator<Bot> botsEnumerator = Bot.Bots.Where(bot => (bot.Value != Bot) && bot.Value.IsConnectedAndLoggedOn && bot.Value.Commands.Bot.HasPermission(steamID, BotConfig.EPermission.Operator)).OrderByDescending(bot => Bot.BotsComparer.Compare(bot.Key, Bot.BotName) > 0).ThenBy(bot => bot.Key, Bot.BotsComparer).Select(bot => bot.Value).GetEnumerator()) {
|
||||
Bot currentBot = Bot;
|
||||
|
||||
Reference in New Issue
Block a user