summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/modules.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index de0faf6d4..6e7d2a8f8 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -718,9 +718,9 @@ class CoreExport Module : public classbase, public usecountbase
* @param source the user making the mode change
* @param dest the user destination of the umode change (NULL if a channel mode)
* @param channel the channel destination of the mode change
- * @param parameters raw mode parameters; parameters[0] is the user/channel being changed
+ * @param modes Modes being changed, can be edited
*/
- virtual ModResult OnPreMode(User* source, User* dest, Channel* channel, const std::vector<std::string>& parameters);
+ virtual ModResult OnPreMode(User* source, User* dest, Channel* channel, Modes::ChangeList& modes);
/** Called when a 005 numeric is about to be output.
* The module should modify the 005 numeric if needed to indicate its features.