From f067a146d123a27839bb250fdfdf203308847221 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 27 Aug 2007 15:01:14 +0000 Subject: Add vector 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 --- include/ctables.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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 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 = ""; syntax = ""; + translation.push_back(TR_END); } /** Handle the command from a user. -- cgit v1.2.3