From a5baaeecf6aac2be7bfdf44d8be23f167da03db5 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 8 Mar 2009 22:01:19 +0000 Subject: m_override: fix messages on multi-mode changes This fixes bug 664 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11186 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index 40bd70963..a60184ef2 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -477,9 +477,12 @@ void ModeParser::Process(const std::vector& parameters, User *user, if ((IS_LOCAL(user)) && (!ServerInstance->ULine(user->server)) && (!servermode)) { + /* Make modes that are being changed visible to OnAccessCheck */ + LastParse = parameters[1]; /* We don't have halfop */ int MOD_RESULT = 0; FOREACH_RESULT(I_OnAccessCheck,OnAccessCheck(user, NULL, targetchannel, AC_GENERAL_MODE)); + LastParse.clear(); if (MOD_RESULT == ACR_DENY) return; SkipAccessChecks = (MOD_RESULT == ACR_ALLOW); -- cgit v1.2.3