summaryrefslogtreecommitdiff
path: root/include/mode.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-04 13:30:01 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-04 13:30:01 +0200
commit3eda212c2ad561fae6a7d8cf20280da9d37a90f4 (patch)
treeee45d590833690fe46ef56e9fa22641e17ad09b2 /include/mode.h
parenta1b74f4dfb2393c0baff25101c6366588975fa27 (diff)
Migrate code from ModeParser into cmd_mode (core_user)
- Process() that takes a std::vector<std::string> - DisplayCurrentModes() - DisplayListModes()
Diffstat (limited to 'include/mode.h')
-rw-r--r--include/mode.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/mode.h b/include/mode.h
index 17d0ec64c..364562dd7 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -530,15 +530,6 @@ class CoreExport ModeParser : public fakederef<ModeParser>
*/
Modes::ChangeList LastChangeList;
- /** Displays the current modes of a channel or user.
- * Used by ModeParser::Process.
- */
- void DisplayCurrentModes(User* user, User* targetuser, Channel* targetchannel);
- /** Displays the value of a list mode
- * Used by ModeParser::Process.
- */
- void DisplayListModes(User* user, Channel* chan, const std::string& mode_sequence);
-
/**
* Attempts to apply a mode change to a user or channel
*/
@@ -569,10 +560,6 @@ class CoreExport ModeParser : public fakederef<ModeParser>
*/
std::string LastParse;
- unsigned int sent[256];
-
- unsigned int seq;
-
/** Cached mode list for use in 004 numeric
*/
std::string Cached004ModeList;
@@ -671,14 +658,6 @@ class CoreExport ModeParser : public fakederef<ModeParser>
* @return True if the ModeWatcher was deleted correctly
*/
bool DelModeWatcher(ModeWatcher* mw);
- /** Process a set of mode changes from a server or user.
- * @param parameters The parameters of the mode change, in the format
- * they would be from a MODE command.
- * @param user The source of the mode change, can be a server user.
- * @param flags Optional flags controlling how the mode change is processed,
- * defaults to MODE_NONE.
- */
- void Process(const std::vector<std::string>& parameters, User* user, ModeProcessFlag flags = MODE_NONE);
/** Process a list of mode changes entirely. If the mode changes do not fit into one MODE line
* then multiple MODE lines are generated.