X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fctables.h;h=2049738c97c586c0303b4cbac0db8f98ecff8f8f;hb=9ebda853f5bc470858501897442610699a5fd5de;hp=a3fcdfbd4ca23266cc9aaca44d6def330c0695a3;hpb=600ea3b38fde78c8105f94c39772dea8043f0573;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/ctables.h b/include/ctables.h index a3fcdfbd4..2049738c9 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -203,7 +203,7 @@ class CoreExport Command : public CommandBase * @param maxpara The maximum number of parameters that the command accepts. */ Command(Module* me, const std::string& cmd, unsigned int minpara = 0, unsigned int maxpara = 0); - + public: /** Unregisters this command from the command parser. */ ~Command() CXX11_OVERRIDE; @@ -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 @@ -250,7 +262,7 @@ protected: SplitCommand(Module* me, const std::string& cmd, unsigned int minpara = 0, unsigned int maxpara = 0); public: - /** @copydoc Commmand::Handle */ + /** @copydoc Command::Handle */ CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE; /** Handle the command from a local user.