summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 16:08:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 16:08:21 +0000
commitffbbfa9cd6c5e30f4ba84d51bb31e42a3e7ebd41 (patch)
tree8906cb1a62f727574b5899e49a1b1c4fbc91e34a /include/command_parse.h
parentb9cd0dda015d86d65e01f14ee50b3671ac40f8ff (diff)
Add documentation comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7894 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 4f8b80000..2c883be20 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -203,6 +203,10 @@ class CoreExport CommandParser : public classbase
void SetupCommandTable(userrec* user);
/** Translate nicknames in a string into UIDs, based on the TranslationType given.
+ * @param to The translation type to use for the process.
+ * @param source The input string
+ * @param dest The output string, it is safe to pass source and dest as the same variable only for translation type TR_TEXT.
+ * @return returns the number of substitutions made. Will always be 0 or 1 for TR_TEXT and 0..n for other types.
*/
int TranslateUIDs(TranslateType to, const std::string &source, std::string &dest);
};