Bot owners can no longer blacklist other bot owners
This commit is contained in:
parent
bc78f70655
commit
3a96e272b4
@ -65,6 +65,9 @@ namespace NadekoBot.Modules.Permissions
|
|||||||
|
|
||||||
private async Task Blacklist(AddRemove action, ulong id, BlacklistType type)
|
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())
|
using (var uow = DbHandler.UnitOfWork())
|
||||||
{
|
{
|
||||||
if (action == AddRemove.Add)
|
if (action == AddRemove.Add)
|
||||||
|
Loading…
Reference in New Issue
Block a user