diff options
Diffstat (limited to 'include/ctables.h')
-rw-r--r-- | include/ctables.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ctables.h b/include/ctables.h index 26140c607..0b523a77f 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -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; |