summaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-11 03:12:39 -0500
committerAdam <Adam@anope.org>2011-02-11 03:12:39 -0500
commit2529ff6daef7eb387d2fce4c6df5a31029fd5bb2 (patch)
tree25c4cf0c84bef8b47c3824ba827b3816b8f17221 /include/commands.h
parent7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff)
Made the help command description code more sane
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/commands.h b/include/commands.h
index 2b3120f29..a2d6643fe 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -79,6 +79,8 @@ struct CoreExport CommandSource
*/
class CoreExport Command : public Flags<CommandFlag>
{
+ Anope::string desc;
+
public:
/* Maximum paramaters accepted by this command */
size_t MaxParams;
@@ -104,6 +106,10 @@ class CoreExport Command : public Flags<CommandFlag>
virtual ~Command();
+ protected:
+ void SetDesc(const Anope::string &d);
+
+ public:
/** Execute this command.
* @param source The source
* @param params Command parameters