]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/listmode.h
Merge pull request #551 from SaberUK/master+unused-configure
[user/henk/code/inspircd.git] / include / listmode.h
index b070b90f94f2e9466fc0e5b84120c1d2bd9cbf46..149f4157867526393f1258bf104c622934cbee51 100644 (file)
@@ -16,6 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+
 #pragma once
 
 /** The base class for list modes, should be inherited.
@@ -143,14 +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);
-
-       /** Listmodes don't get set on users, no-op
-       */
-       virtual void RemoveMode(User*, irc::modestacker* stack);
+       virtual void RemoveMode(Channel* channel, irc::modestacker& stack);
 
        /** Perform a rehash of this mode's configuration data
         */