summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-08-13 16:52:37 +0100
committerPeter Powell <petpow@saberuk.com>2018-08-13 16:52:37 +0100
commite2a820cce21342478653a34cf8ce2b593128d035 (patch)
tree9835be591bbca4e9c367500af73a697737d483cf /include
parentba23c2b115ad3bf2632179d283165c1579332fd8 (diff)
Add an accessor for the last mode change list to ModeParser.
GetLastParse will be going away soon.
Diffstat (limited to 'include')
-rw-r--r--include/mode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h
index ccbfe6f28..4fa78bcac 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -677,6 +677,10 @@ class CoreExport ModeParser : public fakederef<ModeParser>
* This method can be used on both IPV4 and IPV6 user masks.
*/
static void CleanMask(std::string &mask);
+
+ /** Gets the last mode change to be processed. */
+ const Modes::ChangeList& GetLastChangeList() const { return LastChangeList; }
+
/** Get the last string to be processed, as it was sent to the user or channel.
* Use this to display a string you just sent to be parsed, as the actual output
* may be different to what you sent after it has been 'cleaned up' by the parser.