From 2529ff6daef7eb387d2fce4c6df5a31029fd5bb2 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 11 Feb 2011 03:12:39 -0500 Subject: Made the help command description code more sane --- include/commands.h | 6 ++++++ include/users.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include') 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 { + Anope::string desc; + public: /* Maximum paramaters accepted by this command */ size_t MaxParams; @@ -104,6 +106,10 @@ class CoreExport Command : public Flags 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 -- cgit