]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Tons of comments
[user/henk/code/inspircd.git] / include / ctables.h
index 26140c607578f5617e00b0c75ca79463607a0f0f..0b523a77fbf84dafe0a13974570cc537d85fba65 100644 (file)
@@ -52,11 +52,16 @@ class command_t : public Extensible
        /** True if the command is disabled to non-opers
         */
        bool disabled;
+       /** Syntax string for the command, displayed if non-empty string.
+        * This takes place of the text in the 'not enough parameters' numeric.
+        */
+       std::string syntax;
 
        command_t(const std::string &cmd, char flags, int minpara) : command(cmd), flags_needed(flags), min_params(minpara), disabled(false)
        {
                use_count = total_bytes = 0;
                source = "<core>";
+               syntax = "";
        }
 
        virtual void Handle(const char** parameters, int pcnt, userrec* user) = 0;