From 17796c3466ab852280f882144248ab10ea39b372 Mon Sep 17 00:00:00 2001 From: Leet <36166244+leetfin@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:21:34 +0000 Subject: [PATCH] Use gender neutral language (#3057) --- ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs | 2 +- ArchiSteamFarm/Core/OS.cs | 2 +- ArchiSteamFarm/IPC/Startup.cs | 4 ++-- ArchiSteamFarm/Steam/Bot.cs | 2 +- ArchiSteamFarm/Steam/Integration/BotCredentialsProvider.cs | 2 +- ArchiSteamFarm/Steam/Interaction/Actions.cs | 2 +- ArchiSteamFarm/Web/WebBrowser.cs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs index 52aa58b26f3ee..2e12b9c8710b9 100644 --- a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs +++ b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs @@ -133,7 +133,7 @@ public Task OnBotInit(Bot bot) { // This method, apart from being called during bot modules initialization, allows you to read custom bot config properties that are not recognized by ASF // Thanks to that, you can extend default bot config with your own stuff, then parse it here in order to customize your plugin during runtime // Keep in mind that, as noted in the interface, additionalConfigProperties can be null if no custom, unrecognized properties are found by ASF, you should handle that case appropriately - // Also keep in mind that this function can be called multiple times, e.g. when user edits his bot configs during runtime + // Also keep in mind that this function can be called multiple times, e.g. when user edits their bot configs during runtime // Take a look at OnASFInit() for example parsing code public async Task OnBotInitModules(Bot bot, IReadOnlyDictionary? additionalConfigProperties = null) { // For example, we'll ensure that every bot starts paused regardless of Paused property, in order to do this, we'll just call Pause here in InitModules() diff --git a/ArchiSteamFarm/Core/OS.cs b/ArchiSteamFarm/Core/OS.cs index 3f0a85145d73e..f947e08aebdaa 100644 --- a/ArchiSteamFarm/Core/OS.cs +++ b/ArchiSteamFarm/Core/OS.cs @@ -298,7 +298,7 @@ private static void WindowsKeepSystemActive() { } // This function calls unmanaged API in order to tell Windows OS that it should not enter sleep state while the program is running - // If user wishes to enter sleep mode, then he should use ShutdownOnFarmingFinished or manage ASF process with third-party tool or script + // If user wishes to enter sleep mode, then they should use ShutdownOnFarmingFinished or manage the ASF process with third-party tool or script // See https://docs.microsoft.com/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate for more details NativeMethods.EExecutionState result = NativeMethods.SetThreadExecutionState(NativeMethods.EExecutionState.Awake); diff --git a/ArchiSteamFarm/IPC/Startup.cs b/ArchiSteamFarm/IPC/Startup.cs index 120052d292bf0..322c04e920ae0 100644 --- a/ArchiSteamFarm/IPC/Startup.cs +++ b/ArchiSteamFarm/IPC/Startup.cs @@ -384,8 +384,8 @@ private static void OnPrepareResponse(StaticFileResponseContext context) { goto default; default: // Instruct the caller to always ask us first about every file it requests - // Contrary to the name, this doesn't prevent client from caching, but rather informs it that it must verify with us first that his cache is still up-to-date - // This is used to handle ASF and user updates to WWW root, we don't want from the client to ever use outdated scripts + // Contrary to the name, this doesn't prevent client from caching, but rather informs it that it must verify with us first that their cache is still up-to-date + // This is used to handle ASF and user updates to WWW root, we don't want the client to ever use outdated scripts cacheControl.NoCache = true; // All static files are public by definition, we don't have any authorization here diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index 6e113f488cc44..0870c02123380 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -2176,7 +2176,7 @@ private async Task HandleLoginResult(EResult result, EResult extendedResult) { case EResult.AccountLoginDeniedThrottle: case EResult.DuplicateRequest: // This will happen if user reacts to popup and tries to use the code afterwards, we have the code saved in ASF, we just need to try again case EResult.Expired: // Refresh token expired - case EResult.FileNotFound: // User denied approval despite telling us that he accepted it, just try again + case EResult.FileNotFound: // User denied approval despite telling us that they accepted it, just try again case EResult.InvalidPassword: case EResult.NoConnection: case EResult.PasswordRequiredToKickSession: // Not sure about this one, it seems to be just generic "try again"? #694 diff --git a/ArchiSteamFarm/Steam/Integration/BotCredentialsProvider.cs b/ArchiSteamFarm/Steam/Integration/BotCredentialsProvider.cs index 9906dff8df4bd..cfb9adcb5f5af 100644 --- a/ArchiSteamFarm/Steam/Integration/BotCredentialsProvider.cs +++ b/ArchiSteamFarm/Steam/Integration/BotCredentialsProvider.cs @@ -59,7 +59,7 @@ public async Task AcceptDeviceConfirmationAsync() { return false; } - // Ask the user what he wants + // Ask the user what they want string input = await ProvideInput(ASF.EUserInputType.DeviceConfirmation, false).ConfigureAwait(false); return input.Equals("Y", StringComparison.OrdinalIgnoreCase); diff --git a/ArchiSteamFarm/Steam/Interaction/Actions.cs b/ArchiSteamFarm/Steam/Interaction/Actions.cs index 77c90d7dc8bf6..fd83ce129d2a9 100644 --- a/ArchiSteamFarm/Steam/Interaction/Actions.cs +++ b/ArchiSteamFarm/Steam/Interaction/Actions.cs @@ -205,7 +205,7 @@ public async Task GetTradingLock() { return (true, handledConfirmations.Values, string.Format(CultureInfo.CurrentCulture, Strings.BotHandledConfirmations, handledConfirmations.Count)); } - // If he did, check if we've already found everything we were supposed to + // If they did, check if we've already found everything we were supposed to if ((handledConfirmations.Count >= acceptedCreatorIDs.Count) && acceptedCreatorIDs.All(handledConfirmations.ContainsKey)) { return (true, handledConfirmations.Values, string.Format(CultureInfo.CurrentCulture, Strings.BotHandledConfirmations, handledConfirmations.Count)); } diff --git a/ArchiSteamFarm/Web/WebBrowser.cs b/ArchiSteamFarm/Web/WebBrowser.cs index 7d91e5a8d10aa..61201f9b006b8 100644 --- a/ArchiSteamFarm/Web/WebBrowser.cs +++ b/ArchiSteamFarm/Web/WebBrowser.cs @@ -831,7 +831,7 @@ internal static void Init() { break; } - // Compress the request if caller specified it, so he knows that the server supports it, and the content is not compressed yet + // Compress the request if caller specified it, so they know that the server supports it, and the content is not compressed yet if (requestOptions.HasFlag(ERequestOptions.CompressRequest) && (requestMessage.Content.Headers.ContentEncoding.Count == 0)) { HttpContent originalContent = requestMessage.Content;