summaryrefslogtreecommitdiff
path: root/modules/commands/cs_access.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-01-07 03:44:43 -0500
committerAdam <Adam@anope.org>2012-01-07 03:44:43 -0500
commitdd64eac782b3ee5acc6d1068a0ef42142a035254 (patch)
tree556f4bdf91bdf1b3066dee0308a7e72bcc01d35c /modules/commands/cs_access.cpp
parent4204ece7a885dbe965f0adea57b3e3c017b4f5e2 (diff)
Fixed users not being able to delete their own access with /cs access when using numbers, and clean up cs_xop slightly
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r--modules/commands/cs_access.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp
index e0ca6c729..ab132970d 100644
--- a/modules/commands/cs_access.cpp
+++ b/modules/commands/cs_access.cpp
@@ -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;