From e35dd5cbb8b7d0d39a83b35c5837c1f062977eea Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:43:41 +0000 Subject: Rework mode parser into slightly smaller chunks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11594 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/mode.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/mode.h') diff --git a/include/mode.h b/include/mode.h index e80455acc..3e658e206 100644 --- a/include/mode.h +++ b/include/mode.h @@ -440,6 +440,15 @@ class CoreExport ModeParser : public classbase * Used by ModeParser::Process. */ void DisplayCurrentModes(User *user, User* targetuser, Channel* targetchannel, const char* text); + /** Displays the value of a list mode + * Used by ModeParser::Process. + */ + void DisplayListModes(User* user, Channel* chan, std::string &mode_sequence); + + /** + * Attempts to apply a mode change to a user or channel + */ + ModeAction TryMode(User* user, User* targu, Channel* targc, bool adding, unsigned char mode, std::string ¶m, bool servermode, bool SkipACL); /** The string representing the last set of modes to be parsed. * Use GetLastParse() to get this value, to be used for display purposes. -- cgit v1.2.3