summaryrefslogtreecommitdiff
path: root/include/mode.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-09 15:29:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-09 15:29:42 +0000
commitbe60fccc6ca656636924d28eb1fa870f7e8f0144 (patch)
tree02cf1be2f13f15c236244baa3d38eda0f176c279 /include/mode.h
parentb752181177a868a192ede87305957c165fa274f8 (diff)
Make SAMODE oper output tidier
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5184 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/mode.h')
-rw-r--r--include/mode.h11
1 files changed, 11 insertions, 0 deletions
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().