]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/listmode.h
Deduplicate RemoveMode() implementations
[user/henk/code/inspircd.git] / include / listmode.h
index 1c6f70d6f483c5b02eeb4016c78f551846d69d40..b4601fcbd310bdd33520cb5d42c62e6331a3de48 100644 (file)
@@ -144,10 +144,13 @@ class CoreExport ListModeBase : public ModeHandler
        virtual void DisplayEmptyList(User* user, Channel* channel);
 
        /** Remove all instances of the mode from a channel.
-        * See mode.h
+        * Populates the given modestack with modes that remove every instance of
+        * this mode from the channel.
+        * See mode.h for more details.
         * @param channel The channel to remove all instances of the mode from
+        * @param stack The mode stack to add the mode change to
         */
-       virtual void RemoveMode(Channel* channel, irc::modestacker* stack);
+       virtual void RemoveMode(Channel* channel, irc::modestacker& stack);
 
        /** Listmodes don't get set on users, no-op
        */