1. Fix spelling
Gh0st [2016-08-12 18:57:24]
1. Fix spelling
2. Do not excute rename when nickname is too long
diff --git a/src/RocketBotGUI/MainForm.cs b/src/RocketBotGUI/MainForm.cs
index f767972..916fc67 100644
--- a/src/RocketBotGUI/MainForm.cs
+++ b/src/RocketBotGUI/MainForm.cs
@@ -2063,7 +2063,8 @@ namespace PokemonGo.RocketAPI.Window
nickname = newName.ToString();
if (nickname.Length > 12)
{
- ColoredConsoleWrite(Color.Red, $"\"{nickname}\" is too long, please chose another name");
+ ColoredConsoleWrite(Color.Red, $"\"{nickname}\" is too long, please choose another name");
+ continue;
}
var response = await _client2.Inventory.NicknamePokemon(pokemon.Id, nickname);
if (response.Result == NicknamePokemonResponse.Types.Result.Success)
You may download the files in Public Git.