diff options
author | Adam <Adam@anope.org> | 2011-02-11 03:12:39 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-11 03:12:39 -0500 |
commit | 2529ff6daef7eb387d2fce4c6df5a31029fd5bb2 (patch) | |
tree | 25c4cf0c84bef8b47c3824ba827b3816b8f17221 /include | |
parent | 7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff) |
Made the help command description code more sane
Diffstat (limited to 'include')
-rw-r--r-- | include/commands.h | 6 | ||||
-rw-r--r-- | include/users.h | 2 |
2 files changed, 7 insertions, 1 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 diff --git a/include/users.h b/include/users.h index 091cecc5e..667293a3f 100644 --- a/include/users.h +++ b/include/users.h @@ -156,7 +156,7 @@ class CoreExport User : public Extensible * @param ... any number of parameters */ void SendMessage(BotInfo *source, const char *fmt, ...); - virtual void SendMessage(BotInfo *source, const Anope::string &msg); + virtual void SendMessage(BotInfo *source, Anope::string msg); /** Collide a nick * See the comment in users.cpp |