diff options
author | Sadie Powell <sadie@witchery.services> | 2020-03-18 10:54:37 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-18 11:26:05 +0000 |
commit | 92d83e91038eb54a8200815d5d948c2b61dacce4 (patch) | |
tree | 6816640245f14ba950c0ba8d080f2cf3690d94b6 /include | |
parent | e91a017aca2d314f4d9f4cd20ac17bb6e3b97eb4 (diff) |
Allow commands to override ERR_{NEEDSMOREPARAMS,NOTREGISTERED}.
Diffstat (limited to 'include')
-rw-r--r-- | include/ctables.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ctables.h b/include/ctables.h index a3fcdfbd4..22c0ef67e 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -236,6 +236,18 @@ class CoreExport Command : public CommandBase /** Registers this command with the command parser. */ void RegisterService() CXX11_OVERRIDE; + + /** Tells the user they did not specify enough parameters. + * @param user The user who issued the command. + * @param parameters The parameters for the command. + */ + virtual void TellNotEnoughParameters(LocalUser* user, const Params& parameters); + + /** Tells the user they need to be registered to execute this command. + * @param user The user who issued the command. + * @param parameters The parameters for the command. + */ + virtual void TellNotRegistered(LocalUser* user, const Params& parameters); }; class CoreExport SplitCommand : public Command |