summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 15:01:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 15:01:14 +0000
commitf067a146d123a27839bb250fdfdf203308847221 (patch)
treea03e7dd8e72e2dc47350cb1a679cebeb50391b67 /include
parent4e7c9f5a9257723765f9994aff90440a0b6cf3c9 (diff)
Add vector<TranslationType> to commands, used to map fields to uid translations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7886 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/ctables.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ctables.h b/include/ctables.h
index e8a3337fd..c7ccada09 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -33,6 +33,14 @@ enum CmdResult
CMD_USER_DELETED = 3 /* User was deleted - DEPRECIATED */
};
+enum TranslateType
+{
+ TR_END, /* End of known parameters, everything after this is TR_TEXT */
+ TR_TEXT, /* Raw text, leave as-is */
+ TR_NICK, /* Nickname, translate to UUID for server->server */
+ TR_NICKLIST /* Comma seperated nickname list, translate to UUIDs */
+};
+
/** For commands which should not be replicated to other
* servers, we usually return CMD_FAILURE. this isnt readable,
* so we define this alias for CMD_FAILURE called
@@ -81,6 +89,8 @@ class CoreExport command_t : public Extensible
*/
std::string syntax;
+ std::vector<TranslateType> translation;
+
/** Create a new command.
* @param Instance Pointer to creator class
* @param cmd Command name. This must be UPPER CASE.
@@ -97,6 +107,7 @@ class CoreExport command_t : public Extensible
total_bytes = 0;
source = "<core>";
syntax = "";
+ translation.push_back(TR_END);
}
/** Handle the command from a user.