From be60fccc6ca656636924d28eb1fa870f7e8f0144 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Sep 2006 15:29:42 +0000 Subject: Make SAMODE oper output tidier git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5184 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/mode.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/mode.h') diff --git a/include/mode.h b/include/mode.h index fe646c9b3..070b89a95 100644 --- a/include/mode.h +++ b/include/mode.h @@ -360,6 +360,11 @@ class ModeParser : public classbase */ void DisplayCurrentModes(userrec *user, userrec* targetuser, chanrec* targetchannel, const char* text); + /** The string representing the last set of modes to be parsed. + * Use GetLastParse() to get this value, to be used for display purposes. + */ + std::string LastParse; + public: /** The constructor initializes all the RFC basic modes by using ModeParserAddMode(). @@ -390,6 +395,12 @@ class ModeParser : public classbase * This method can be used on both IPV4 and IPV6 user masks. */ static void CleanMask(std::string &mask); + /** 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. + * @return Last parsed string, as seen by users. + */ + const std::string& GetLastParse(); /** Add a mode to the mode parser. The modeletter parameter * is purely to save on doing a lookup in the function, as * strictly it could be obtained via ModeHandler::GetModeChar(). -- cgit v1.2.3