summaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-08 20:58:47 -0400
committerAdam <Adam@anope.org>2012-10-08 20:58:47 -0400
commit3af786d4c97e8ee99ea122a5c058d82e6222f295 (patch)
tree750c5de0ec2c001b6366fd5137478e6944cdc296 /include/commands.h
parente57b470e83fac205a354138b1daccec654214e39 (diff)
Fix fantasy !help & give it its own help header, not ChanServ's
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/commands.h b/include/commands.h
index 45b122247..59e8f5f1c 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -29,6 +29,8 @@ const Anope::string CommandFlagStrings[] = {
struct CommandInfo
{
+ typedef Anope::insensitive_map<CommandInfo> map;
+
Anope::string name;
Anope::string permission;
};
@@ -53,15 +55,13 @@ class CoreExport CommandSource
/* Channel the command was executed on (fantasy) */
dynamic_reference<Channel> c;
/* The service this command is on */
- dynamic_reference<BotInfo> owner;
- /* The service the reply should come from, *not* necessarily the service the command is on */
dynamic_reference<BotInfo> service;
/* The actual name of the command being executed */
Anope::string command;
/* The permission of the command being executed */
Anope::string permission;
- CommandSource(const Anope::string &n, User *user, NickCore *core, CommandReply *reply);
+ CommandSource(const Anope::string &n, User *user, NickCore *core, CommandReply *reply, BotInfo *bi);
const Anope::string &GetNick() const;
User *GetUser();