1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 10:36:38 +02:00

Made the help command description code more sane

This commit is contained in:
Adam
2011-02-11 03:12:39 -05:00
parent 7bdf592f7e
commit 2529ff6dae
148 changed files with 215 additions and 939 deletions
+6
View File
@@ -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
+1 -1
View File
@@ -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