]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modechange.h
Use IsCTCP in blockcolor for ignoring CTCPs.
[user/henk/code/inspircd.git] / include / modechange.h
index 885c22900907527fe3c0b09b6c6fce88b3f11dc0..3b02b0dd62f2dd777e042fe3960c1093b63fd556 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2017-2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2014, 2018 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -53,6 +54,23 @@ class Modes::ChangeList
  public:
        typedef std::vector<Change> List;
 
+       /** Add a new mode to be changed to this ChangeList
+        * @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