From b76ff64daeeb1e1081cff93c611f730e5b1b051e Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 20 Oct 2017 08:01:27 +0100 Subject: Enable using m_customprefix to alter core prefix modes. This replaces the devoice module which has now been removed. If you want users to be able to devoice themselves then you can load the customprefix module add the following config tag: If you wish to keep identical behaviour rather than allowing users to use "MODE #YourChannel -v TheirNick" then you can load the alias module and add the following config tag: --- include/mode.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/mode.h b/include/mode.h index 30b28a6b0..83b8f31be 100644 --- a/include/mode.h +++ b/include/mode.h @@ -398,6 +398,15 @@ class CoreExport PrefixMode : public ModeHandler */ ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string& param, bool adding); + /** + * Updates the configuration of this prefix. + * @param rank The prefix rank of this mode. + * @param setrank The prefix rank required to set this mode on channels. + * @param unsetrank The prefix rank required to set this unmode on channels. + * @param selfrm Whether a client with this prefix can remove it from themself. + */ + void Update(unsigned int rank, unsigned int setrank, unsigned int unsetrank, bool selfrm); + /** * Removes this prefix mode from all users on the given channel * @param channel The channel which the server wants to remove your mode from -- cgit v1.3.1-10-gc9f91