Bot owners can no longer blacklist other bot owners

This commit is contained in:
Master Kwoth 2017-05-17 00:55:59 +02:00
parent bc78f70655
commit 3a96e272b4

View File

@ -65,6 +65,9 @@ namespace NadekoBot.Modules.Permissions
private async Task Blacklist(AddRemove action, ulong id, BlacklistType type)
{
if(action == AddRemove.Add && NadekoBot.Credentials.OwnerIds.Contains(id))
return;
using (var uow = DbHandler.UnitOfWork())
{
if (action == AddRemove.Add)