From 85a1b1cb29a726a8c04a007cf646f55e24b48648 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 6 Jan 2017 13:48:34 +0100 Subject: [PATCH] Fix unrecognized commands with special languages (e.g. Turkish) --- ArchiSteamFarm/Bot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 8540ba313..7d3ac6e8e 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -466,7 +466,7 @@ namespace ArchiSteamFarm { } if (message.IndexOf(' ') < 0) { - switch (message.ToUpper()) { + switch (message.ToUpperInvariant()) { case "!2FA": return await Response2FA(steamID).ConfigureAwait(false); case "!2FANO": @@ -517,7 +517,7 @@ namespace ArchiSteamFarm { } string[] args = message.Split((char[]) null, StringSplitOptions.RemoveEmptyEntries); - switch (args[0].ToUpper()) { + switch (args[0].ToUpperInvariant()) { case "!2FA": return await Response2FA(steamID, args[1]).ConfigureAwait(false); case "!2FANO":