mirror of
https://github.com/anope/anope.git
synced 2026-07-10 15:23:12 +02:00
Fixed users not being able to delete their own access with /cs access when using numbers, and clean up cs_xop slightly
This commit is contained in:
@@ -223,7 +223,7 @@ class CommandCSAccess : public Command
|
||||
AccessGroup u_access = ci->AccessFor(user);
|
||||
ChanAccess *u_highest = u_access.Highest();
|
||||
|
||||
if (u_highest ? AccessChanAccess::DetermineLevel(u_highest) : 0 <= AccessChanAccess::DetermineLevel(access) && !u_access.Founder && !user->HasPriv("chanserv/access/modify"))
|
||||
if ((u_highest ? AccessChanAccess::DetermineLevel(u_highest) : 0) <= AccessChanAccess::DetermineLevel(access) && !u_access.Founder && !this->override && !access->mask.equals_ci(user->Account()->display))
|
||||
{
|
||||
Denied = true;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user