diff options
| author | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
| commit | 9931ec299446c3d9e149f91a953748350c38eba6 (patch) | |
| tree | fb3969d5aeb2ce23a7d2cde9fd9e47841b125c4b /include | |
| parent | 5f3dfc296041540960f372b010eea623bdd7d335 (diff) | |
Use m_rewrite to rewrite op, deop, halfop, ... etc
Diffstat (limited to 'include')
| -rw-r--r-- | include/commands.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/commands.h b/include/commands.h index 1242efa72..fedd0a8eb 100644 --- a/include/commands.h +++ b/include/commands.h @@ -21,9 +21,6 @@ enum CommandFlag /* Command allow unidentified users to use it */ CFLAG_ALLOW_UNREGISTERED, - /* Command's first parameter is a channel name */ - CFLAG_STRIP_CHANNEL, - /* Command requires a user to execute */ CFLAG_REQUIRE_USER }; @@ -33,10 +30,14 @@ struct CommandInfo { typedef Anope::map<CommandInfo> map; + CommandInfo() : prepend_channel(false) { } + /* Service name of the command */ Anope::string name; /* Permission required to execute the command */ Anope::string permission; + /* Only used with fantasy */ + bool prepend_channel; }; /* Where the replies from commands go to. User inheits from this and is the normal |
