summaryrefslogtreecommitdiff
path: root/include/mode.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:43:41 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:43:41 +0000
commite35dd5cbb8b7d0d39a83b35c5837c1f062977eea (patch)
tree81d913b07a3e58487c86096df60ed3c95067cdc1 /include/mode.h
parent219993bc9018d9f0d9568330d7a972b68b785d27 (diff)
Rework mode parser into slightly smaller chunks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11594 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/mode.h')
-rw-r--r--include/mode.h9
1 files changed, 9 insertions, 0 deletions
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 &param, 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.