diff options
Diffstat (limited to 'src/coremods/core_user/core_user.h')
-rw-r--r-- | src/coremods/core_user/core_user.h | 17 |
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 |