1
0
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:
Adam
2012-01-07 03:44:43 -05:00
parent 4204ece7a8
commit dd64eac782
2 changed files with 53 additions and 54 deletions
+1 -1
View File
@@ -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;