From 7892c8a0313c50d8138942ff3b112691caf05a2f Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 13 Sep 2009 20:31:23 +0000 Subject: Replace OnAccessCheck with OnPreMode to remove a number of redundant checks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11700 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index c760df3f5..18384aaef 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -419,13 +419,8 @@ void ModeParser::Process(const std::vector& parameters, User *user, } else { - /* Overall access control hook for mode change */ - int hook = targetchannel ? AC_GENERAL_MODE : AC_GENERAL_UMODE; - - LastParse = mode_sequence; ModResult MOD_RESULT; - FIRST_MOD_RESULT(ServerInstance, OnAccessCheck, MOD_RESULT, (user, targetuser, targetchannel, hook)); - LastParse.clear(); + FIRST_MOD_RESULT(ServerInstance, OnPreMode, MOD_RESULT, (user, targetuser, targetchannel, parameters)); if (MOD_RESULT == MOD_RES_DENY) return; SkipAccessChecks = (MOD_RESULT == MOD_RES_ALLOW); -- cgit v1.2.3