From 84faaef9605df856947277780dfea9d8d7982df1 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Mon, 1 Mar 2010 09:50:49 -0600 Subject: Allow m_autoop to grant channel flags, source its mode changes from the joining user --- src/mode.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mode.cpp') 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(target); User* targetuser = dynamic_cast(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) -- cgit v1.3.1-10-gc9f91