summaryrefslogtreecommitdiff
path: root/modules/commands/cs_access.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-21 14:54:06 -0400
committerAdam <Adam@anope.org>2011-08-21 14:54:06 -0400
commitd71ae412bb539ee63a2428dca6264d989b5cbc33 (patch)
treea0b9b7c1dda673ad5039a2b7c844b46c24410f10 /modules/commands/cs_access.cpp
parent68a125bf6e187c518372b8ee33815860f432db57 (diff)
Fixed /cs access add log message to not show override for channel founders
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r--modules/commands/cs_access.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp
index d269b1499..ae1e03fbf 100644
--- a/modules/commands/cs_access.cpp
+++ b/modules/commands/cs_access.cpp
@@ -307,7 +307,7 @@ class CommandCSAccess : public Command
AccessGroup u_access = ci->AccessFor(u);
ChanAccess *highest = u_access.Highest();
int u_level = (highest ? AccessChanAccess::DetermineLevel(highest) : 0);
- if (level >= u_level && !u_access.Founder)
+ if (level >= u_level && !u_access.Founder && !u->HasPriv("chanserv/access/modify"))
{
source.Reply(ACCESS_DENIED);
return;
@@ -318,7 +318,7 @@ class CommandCSAccess : public Command
return;
}
- bool override = !ci->AccessFor(u).HasPriv(CA_ACCESS_CHANGE) || level >= u_level;
+ bool override = !ci->AccessFor(u).HasPriv(CA_ACCESS_CHANGE) || (level >= u_level && !u_access.Founder);
if (mask.find_first_of("!*@") == Anope::string::npos && findnick(mask) == NULL)
mask += "!*@*";