From 7de315bc04940ee0c71d24512f4f8dab5ccef690 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 11 Jul 2016 16:23:42 +0200 Subject: [PATCH] #392 fixed searching abilities with spaces --- NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs b/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs index f9824278..a171abe9 100644 --- a/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs +++ b/NadekoBot/Modules/Searches/Commands/PokemonSearchCommands.cs @@ -47,7 +47,7 @@ namespace NadekoBot.Modules.Searches.Commands .Parameter("abil", ParameterType.Unparsed) .Do(async e => { - var ab = e.GetArg("abil")?.Trim().ToUpperInvariant(); + var ab = e.GetArg("abil")?.Trim().ToUpperInvariant().Replace(" ", ""); if (string.IsNullOrWhiteSpace(ab)) return; foreach (var kvp in pokemonAbilities)