diff options
| author | 2014-09-04 12:58:25 +0200 | |
|---|---|---|
| committer | 2014-09-04 12:58:25 +0200 | |
| commit | 5f031349833d18d9fe5495b848c2d3fb7fd7f8f0 (patch) | |
| tree | 3e5413ffd29e53ddded1be81343547ba0c686e3e /src/mode.cpp | |
| parent | Call the MODE command handler in several modules instead of the old ModeParse... (diff) | |
| download | inspircd++-5f031349833d18d9fe5495b848c2d3fb7fd7f8f0.tar.gz inspircd++-5f031349833d18d9fe5495b848c2d3fb7fd7f8f0.tar.bz2 inspircd++-5f031349833d18d9fe5495b848c2d3fb7fd7f8f0.zip | |
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.cpp | 2 |
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)) { |
