From e2a820cce21342478653a34cf8ce2b593128d035 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 13 Aug 2018 16:52:37 +0100 Subject: Add an accessor for the last mode change list to ModeParser. GetLastParse will be going away soon. --- include/mode.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 * 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. -- cgit v1.2.3