]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
Only subclass Simple{Channel,User}ModeHandler when necessary.
[user/henk/code/inspircd.git] / include / mode.h
index 30b28a6b09767fdfa16861e5a0c51cbd8df42a69..83b8f31be88cb596d6952f1c5fd317eb8ceffb8e 100644 (file)
@@ -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