Message when there is no toPerm too

This commit is contained in:
Kwoth 2016-10-07 20:13:03 +02:00
parent 4d1bc01718
commit 0a8f998b32

View File

@ -172,6 +172,12 @@ namespace NadekoBot.Modules.Permissions
await channel.SendMessageAsync($"`Can't find permission at index `#{++from}`").ConfigureAwait(false); await channel.SendMessageAsync($"`Can't find permission at index `#{++from}`").ConfigureAwait(false);
return; return;
} }
if (!toFound)
{
await channel.SendMessageAsync($"`Can't find permission at index `#{++to}`").ConfigureAwait(false);
return;
}
} }
//Change chain for from indx //Change chain for from indx