#392 fixed searching abilities with spaces

This commit is contained in:
Master Kwoth 2016-07-11 16:23:42 +02:00
parent d89298e3d8
commit 7de315bc04

View File

@ -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)