summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 15:14:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 15:14:27 +0000
commitcd2406617f5c0c3c5e7f53519ea47b9178b7802a (patch)
tree30ec5a594820f6f86d102b641da6b135b9ae5ee6 /include
parent4bbca0643b56f26f73a05462d226b2dd8871626b (diff)
More translation stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7888 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/command_parse.h4
-rw-r--r--include/ctables.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 2c3605613..4f8b80000 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -201,6 +201,10 @@ class CoreExport CommandParser : public classbase
* stdout then exit with EXIT_STATUS_HANDLER.
*/
void SetupCommandTable(userrec* user);
+
+ /** Translate nicknames in a string into UIDs, based on the TranslationType given.
+ */
+ int TranslateUIDs(TranslateType to, const std::string &source, std::string &dest);
};
/** Command handler class for the RELOAD command.
diff --git a/include/ctables.h b/include/ctables.h
index c7ccada09..a1f05a3a8 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -38,7 +38,8 @@ 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 */
+ TR_NICKLIST, /* Comma seperated nickname list, translate to UUIDs */
+ TR_SPACENICKLIST /* Space seperated nickname list, translate to UUIDs */
};
/** For commands which should not be replicated to other