From 1c1c5fc3f01c42a09d34594989679bbc8fb21c0d Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 3 Sep 2009 15:53:15 +0000 Subject: Remove CMD_LOCALONLY, enforce use of GetRouting for routed commands git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11671 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/ctables.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'include') diff --git a/include/ctables.h b/include/ctables.h index 95db50b1a..b57a29b4d 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -21,7 +21,6 @@ enum CmdResult CMD_FAILURE = 0, /* Command exists, but failed */ CMD_SUCCESS = 1, /* Command exists, and succeeded */ CMD_INVALID = 2 /* Command doesnt exist at all! */ -#define CMD_LOCALONLY CMD_FAILURE }; /** Translation types for translation of parameters to UIDs. @@ -172,22 +171,18 @@ class CoreExport Command : public Extensible * @param parameters The parameters for the command. * @param user The user who issued the command. * @return Return CMD_SUCCESS on success, or CMD_FAILURE on failure. - * If the command succeeds but should remain local to this server, - * return CMD_LOCALONLY. */ virtual CmdResult Handle(const std::vector& parameters, User* user) = 0; virtual RouteDescriptor GetRouting(User* user, const std::vector& parameters) { - return ROUTE_BROADCAST; + return ROUTE_LOCALONLY; } /** Handle an internal request from another command, the core, or a module * @param Command ID * @param Zero or more parameters, whos form is specified by the command ID. * @return Return CMD_SUCCESS on success, or CMD_FAILURE on failure. - * If the command succeeds but should remain local to this server, - * return CMD_LOCALONLY. */ virtual CmdResult HandleInternal(const unsigned int /* id */, const std::deque& /* params */) { @@ -199,8 +194,6 @@ class CoreExport Command : public Extensible * @param parameters The parameters given * @param servername The server name which issued the command * @return Return CMD_SUCCESS on success, or CMD_FAILURE on failure. - * If the command succeeds but should remain local to this server, - * return CMD_LOCALONLY. */ virtual CmdResult HandleServer(const std::vector& /* parameters */, const std::string& /* servername */) { -- cgit v1.2.3