summaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-01-08 00:25:11 -0500
committerAdam <Adam@anope.org>2011-01-08 00:25:11 -0500
commit512d23d60f25203ab88605ba131a0704cadd2263 (patch)
treef7bf42a648677f02f170db1e6692fafad10d81c6 /include/commands.h
parent44038491264a350a8849e1d7e8547bbdec134d74 (diff)
Made the Flag class able to convert flags to strings and back
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/commands.h b/include/commands.h
index 4abaa43b8..afb7ab51f 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -43,6 +43,16 @@ enum CommandFlag
CFLAG_DISABLE_FANTASY
};
+const Anope::string CommandFlagStrings[] = {
+ "CFLAG_ALLOW_UNREGISTERED",
+ "CFLAG_ALLOW_FORBIDDEN",
+ "CFLAG_ALLOW_SUSPENDED",
+ "CFLAG_ALLOW_UNREGISTEREDCHANNEL",
+ "CFLAG_STRIP_CHANNEL",
+ "CFLAG_DISABLE_FANTASY",
+ ""
+};
+
/* The source for a command */
struct CoreExport CommandSource
{