]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Fix various documentation and formatting issues.
[user/henk/code/inspircd.git] / include / ctables.h
index a3fcdfbd4ca23266cc9aaca44d6def330c0695a3..2049738c97c586c0303b4cbac0db8f98ecff8f8f 100644 (file)
@@ -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.