diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-03 15:53:15 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-03 15:53:15 +0000 |
commit | 1c1c5fc3f01c42a09d34594989679bbc8fb21c0d (patch) | |
tree | 5c74dbaff535f90799e997795074e6c1fbc19091 /include | |
parent | b45dcb19d3350a5ae5e9a006b3679f0bc3992fea (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/ctables.h | 9 |
1 files changed, 1 insertions, 8 deletions
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<std::string>& parameters, User* user) = 0; virtual RouteDescriptor GetRouting(User* user, const std::vector<std::string>& 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<classbase*>& /* 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<std::string>& /* parameters */, const std::string& /* servername */) { |