aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-03-01 09:50:49 -0600
committerGravatar Daniel De Graaf2010-08-03 17:32:38 -0400
commit84faaef9605df856947277780dfea9d8d7982df1 (patch)
tree44b808a8698aeeac4857c7c304380adbf1072d8e /src/mode.cpp
parentLet ENCAP target match on server names, not just SIDs (diff)
Allow m_autoop to grant channel flags, source its mode changes from the joining user
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index dce5759c5..5e311b79d 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -537,7 +537,7 @@ void ModeParser::Send(User *src, Extensible* target, irc::modestacker modes)
}
}
-void ModeParser::Process(User *src, Extensible* target, irc::modestacker& modes, bool merge)
+void ModeParser::Process(User *src, Extensible* target, irc::modestacker& modes, bool merge, bool SkipAccessChecks)
{
Channel* targetchannel = dynamic_cast<Channel*>(target);
User* targetuser = dynamic_cast<User*>(target);
@@ -545,8 +545,6 @@ void ModeParser::Process(User *src, Extensible* target, irc::modestacker& modes,
ModResult MOD_RESULT;
FIRST_MOD_RESULT(OnPreMode, MOD_RESULT, (src, target, modes));
- bool SkipAccessChecks = false;
-
if (!IS_LOCAL(src) || MOD_RESULT == MOD_RES_ALLOW)
SkipAccessChecks = true;
else if (MOD_RESULT == MOD_RES_DENY)