summaryrefslogtreecommitdiff
path: root/include/modechange.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-08-13 20:17:46 +0100
committerPeter Powell <petpow@saberuk.com>2018-08-13 21:51:11 +0100
commit58a0a7e01422e62de1565a8eb0a1febdc463d04d (patch)
tree8861789deefe9df3524690de8ccd11e5366f1f2e /include/modechange.h
parente2a820cce21342478653a34cf8ce2b593128d035 (diff)
Implement IRCv3 message tag support.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
Diffstat (limited to 'include/modechange.h')
-rw-r--r--include/modechange.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/modechange.h b/include/modechange.h
index 885c22900..9ec105e73 100644
--- a/include/modechange.h
+++ b/include/modechange.h
@@ -54,6 +54,23 @@ class Modes::ChangeList
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
* @param param Mode parameter