summaryrefslogtreecommitdiff
path: root/src/coremods/core_user/core_user.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-04 13:11:48 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-04 13:11:48 +0200
commita1b74f4dfb2393c0baff25101c6366588975fa27 (patch)
treecce684ef1a91f2ee19bb9a4fb9abf34c7289f586 /src/coremods/core_user/core_user.h
parente3fc46af3ea3999ea5eea7274f038f4f03357e0e (diff)
core_user Expand the MODE handler into its own file
Diffstat (limited to 'src/coremods/core_user/core_user.h')
-rw-r--r--src/coremods/core_user/core_user.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/coremods/core_user/core_user.h b/src/coremods/core_user/core_user.h
index a529e0ccf..7cc3d1e05 100644
--- a/src/coremods/core_user/core_user.h
+++ b/src/coremods/core_user/core_user.h
@@ -62,6 +62,23 @@ class CommandAway : public Command
RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
};
+class CommandMode : public Command
+{
+ public:
+ /** Constructor for mode.
+ */
+ CommandMode(Module* parent);
+
+ /** Handle command.
+ * @param parameters The parameters to the command
+ * @param user The user issuing the command
+ * @return A value from CmdResult to indicate command success or failure.
+ */
+ CmdResult Handle(const std::vector<std::string>& parameters, User* user);
+
+ RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
+};
+
/** Handle /NICK.
*/
class CommandNick : public SplitCommand