diff options
author | Adam <Adam@anope.org> | 2012-12-19 16:03:53 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-12-19 16:03:53 -0500 |
commit | 276247b463ab0731c1476c94adc247a2934960b3 (patch) | |
tree | 8d9b99f32e58e0e580dbcbd0ab4e36867df4dfa8 /include/commands.h | |
parent | 67bd2c6b2da0d66dc7874dabbc8c9d2136efeb94 (diff) |
Add a command flag to require that a user is executing the command
Diffstat (limited to 'include/commands.h')
-rw-r--r-- | include/commands.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/commands.h b/include/commands.h index e390fb3d3..6935db576 100644 --- a/include/commands.h +++ b/include/commands.h @@ -18,8 +18,14 @@ enum CommandFlag { + /* Command allow unidentified users to use it */ CFLAG_ALLOW_UNREGISTERED, - CFLAG_STRIP_CHANNEL + + /* Command's first parameter is a channel name */ + CFLAG_STRIP_CHANNEL, + + /* Command requires a user to execute */ + CFLAG_REQUIRE_USER }; /* Used in BotInfo::commands */ |