From 5f031349833d18d9fe5495b848c2d3fb7fd7f8f0 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 4 Sep 2014 12:58:25 +0200 Subject: Pass Modes::ChangeList references to the OnPreMode hook, make it modifiable This gets rid of the duplicated mode parsing logic in m_namedmodes --- include/modules.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/modules.h') 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& 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. -- cgit v1.2.3