summaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-13 22:05:30 -0500
committerAdam <Adam@anope.org>2013-01-13 22:07:27 -0500
commitda6543d17b689c31226e1b7ba1ce7de29baee2df (patch)
tree750c38fc64ac41a93c9eb539637ae029239855fd /include/commands.h
parent29a018088ecf42c870b78d1539a90776a21276ec (diff)
Allow grouping commands to make help output easier to comprehend
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/commands.h b/include/commands.h
index b6b2dfc1f..9f7782102 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -25,17 +25,26 @@ enum CommandFlag
CFLAG_REQUIRE_USER
};
+struct CommandGroup
+{
+ Anope::string name, description;
+};
+
/* Used in BotInfo::commands */
struct CommandInfo
{
typedef Anope::map<CommandInfo> map;
- CommandInfo() : prepend_channel(false) { }
+ CommandInfo() : hide(false), prepend_channel(false) { }
/* Service name of the command */
Anope::string name;
/* Permission required to execute the command */
Anope::string permission;
+ /* Group this command is in */
+ Anope::string group;
+ /* whether or not to hide this command in help output */
+ bool hide;
/* Only used with fantasy */
bool prepend_channel;
};