diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-26 22:35:32 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-01 23:41:42 +0200 |
commit | ca838821e7c53da0ddaee35d9a401e3a5eaf8c8c (patch) | |
tree | 01aafc155364f74a95f04472ec9b18d44c820dde /include | |
parent | 40c5b25db4aef95957788c46de1005708ce000d2 (diff) |
Remove useless ModeType parameter from ModeWatcher::BeforeMode() and AfterMode()
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/mode.h b/include/mode.h index 2cc5d6681..32c87d8b0 100644 --- a/include/mode.h +++ b/include/mode.h @@ -383,11 +383,10 @@ class CoreExport ModeWatcher : public classbase * If you alter the parameter you are given, the mode handler will see your atered version * when it handles the mode. * @param adding True if the mode is being added and false if it is being removed - * @param type The mode type, either MODETYPE_USER or MODETYPE_CHANNEL * @return True to allow the mode change to go ahead, false to abort it. If you abort the * change, the mode handler (and ModeWatcher::AfterMode()) will never see the mode change. */ - virtual bool BeforeMode(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, ModeType type); + virtual bool BeforeMode(User* source, User* dest, Channel* channel, std::string& parameter, bool adding); /** * After the mode character has been processed by the ModeHandler, this method will be called. * @param source The sender of the mode @@ -396,9 +395,8 @@ class CoreExport ModeWatcher : public classbase * @param parameter The parameter of the mode, if the mode is supposed to have a parameter. * You cannot alter the parameter here, as the mode handler has already processed it. * @param adding True if the mode is being added and false if it is being removed - * @param type The mode type, either MODETYPE_USER or MODETYPE_CHANNEL */ - virtual void AfterMode(User* source, User* dest, Channel* channel, const std::string ¶meter, bool adding, ModeType type); + virtual void AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding); }; typedef std::vector<ModeWatcher*>::iterator ModeWatchIter; |