summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-04 12:58:25 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-04 12:58:25 +0200
commit5f031349833d18d9fe5495b848c2d3fb7fd7f8f0 (patch)
tree3e5413ffd29e53ddded1be81343547ba0c686e3e /src/mode.cpp
parent6fe96bda2531cb1357f35c6d0717910283e2d921 (diff)
Pass Modes::ChangeList references to the OnPreMode hook, make it modifiable
This gets rid of the duplicated mode parsing logic in m_namedmodes
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 770e6a2e2..e895b77d0 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -393,7 +393,7 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
ModeParamsToChangeList(user, type, parameters, changelist);
ModResult MOD_RESULT;
- FIRST_MOD_RESULT(OnPreMode, MOD_RESULT, (user, targetuser, targetchannel, parameters));
+ FIRST_MOD_RESULT(OnPreMode, MOD_RESULT, (user, targetuser, targetchannel, changelist));
if (IS_LOCAL(user))
{