From 9931ec299446c3d9e149f91a953748350c38eba6 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 8 Jan 2013 20:25:01 -0500 Subject: Use m_rewrite to rewrite op, deop, halfop, ... etc --- include/commands.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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 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 -- cgit