]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modechange.h
Add Who::Request::GetFlagIndex to get field index
[user/henk/code/inspircd.git] / include / modechange.h
index e20665790f54530d3a56d8e007845d0957e9385e..9ec105e73b5cadb97d174f51ebcd5495e729a4e7 100644 (file)
@@ -54,9 +54,26 @@ class Modes::ChangeList
        typedef std::vector<Change> List;
 
        /** Add a new mode to be changed to this ChangeList
-        * @param handler Mode handler
-        * @param add True if this mode is being set, false if removed
-        * @param parameter Mode parameter
+        * @param change Mode change to add
+        */
+       void push(const Modes::Change& change)
+       {
+               items.push_back(change);
+       }
+
+       /** Insert multiple mode changes to the ChangeList
+        * @param first Iterator to the first change to insert
+        * @param last Iterator to the first change to not insert
+        */
+       void push(List::const_iterator first, List::const_iterator last)
+       {
+               items.insert(items.end(), first, last);
+       }
+
+       /** Add a new mode to be changed to this ChangeList
+        * @param mh Mode handler
+        * @param adding True if this mode is being set, false if removed
+        * @param param Mode parameter
         */
        void push(ModeHandler* mh, bool adding, const std::string& param = std::string())
        {
@@ -64,8 +81,8 @@ class Modes::ChangeList
        }
 
        /** Add a new mode to this ChangeList which will be set on the target
-        * @param handler Mode handler
-        * @param parameter Mode parameter
+        * @param mh Mode handler
+        * @param param Mode parameter
         */
        void push_add(ModeHandler* mh, const std::string& param = std::string())
        {
@@ -73,8 +90,8 @@ class Modes::ChangeList
        }
 
        /** Add a new mode to this ChangeList which will be unset from the target
-        * @param handler Mode handler
-        * @param parameter Mode parameter
+        * @param mh Mode handler
+        * @param param Mode parameter
         */
        void push_remove(ModeHandler* mh, const std::string& param = std::string())
        {