From 988f8f2a5714744cde1247684aafb5b37024ac1c Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 14 Feb 2008 11:52:06 +0000 Subject: [PATCH] Hopefully fix behaviour of OnRawMode git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8931 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mode.cpp b/src/mode.cpp index 7b99eedb9..48777a7bf 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -309,7 +309,10 @@ void ModeParser::Process(const char** parameters, int pcnt, User *user, bool ser int MOD_RESULT = 0; FOREACH_RESULT(I_OnRawMode, OnRawMode(user, targetchannel, *mode, "", true, 0)); if (MOD_RESULT == ACR_DENY) + { + mode++; continue; + } if (*mode == '+') { @@ -509,7 +512,7 @@ void ModeParser::Process(const char** parameters, int pcnt, User *user, bool ser int MOD_RESULT = 0; FOREACH_RESULT(I_OnRawMode, OnRawMode(user, targetchannel, modechar, parameter, adding, 1)); if (MOD_RESULT == ACR_DENY) - return; + continue; bool had_parameter = !parameter.empty(); @@ -536,7 +539,7 @@ void ModeParser::Process(const char** parameters, int pcnt, User *user, bool ser int MOD_RESULT = 0; FOREACH_RESULT(I_OnRawMode, OnRawMode(user, targetchannel, modechar, "", adding, 0)); if (MOD_RESULT == ACR_DENY) - return; + continue; /* Fix by brain: mode watchers not being called for parameterless modes */ for (ModeWatchIter watchers = modewatchers[handler_id].begin(); watchers != modewatchers[handler_id].end(); watchers++) -- 2.39.2