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:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user