Bot owners can no longer blacklist other bot owners
This commit is contained in:
1 parent
bc78f70655
commit
3a96e272b4
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user