Skip to content

Commit

Permalink
Use gender neutral language (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
leetfin authored Oct 31, 2023
1 parent 09804a5 commit 17796c3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, JToken>? 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()
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Core/OS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions ArchiSteamFarm/IPC/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Steam/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Steam/Integration/BotCredentialsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task<bool> 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);
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Steam/Interaction/Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public async Task<IDisposable> 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));
}
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Web/WebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 17796c3

Please sign in to comment.