summaryrefslogtreecommitdiff
path: root/include
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
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')
-rw-r--r--include/mode.h21
-rw-r--r--include/modules.h2
2 files changed, 1 insertions, 22 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.
diff --git a/include/modules.h b/include/modules.h
index 6e7d2a8f8..b08192891 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -709,7 +709,7 @@ class CoreExport Module : public classbase, public usecountbase
*/
virtual void OnUserPostNick(User* user, const std::string &oldnick);
- /** Called before any mode change, to allow a single access check for
+ /** Called before a mode change via the MODE command, to allow a single access check for
* a full mode change (use OnRawMode to check individual modes)
*
* Returning MOD_RES_ALLOW will skip prefix level checks, but can be overridden by