Fix unrecognized commands with special languages (e.g. Turkish)

This commit is contained in:
JustArchi
2017-01-06 13:48:34 +01:00
parent 7f400b5e83
commit 85a1b1cb29

View File

@@ -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":