diff options
author | aquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-09 17:15:43 +0000 |
---|---|---|
committer | aquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-09 17:15:43 +0000 |
commit | c512706209dbbf7aff9f129782b8417267808c96 (patch) | |
tree | b07594b1db11caa1c389a5eea0c9865b65a52e46 /include/ctables.h | |
parent | bd1b2458006ffc27283850aac82ea748aaf6330a (diff) |
Add translation type TR_CUSTOM, and fix up callerid some.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10130 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/ctables.h')
-rw-r--r-- | include/ctables.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/ctables.h b/include/ctables.h index ad2135b1e..f744d6340 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -29,7 +29,8 @@ enum TranslateType 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_SPACENICKLIST /* Space seperated nickname list, translate to UUIDs */ + TR_SPACENICKLIST, /* Space seperated nickname list, translate to UUIDs */ + TR_CUSTOM, /* Custom translation handled by EncodeParameter/DecodeParameter */ }; /** For commands which should not be replicated to other @@ -139,6 +140,25 @@ class CoreExport Command : public Extensible return CMD_INVALID; } + /** Encode a parameter for server->server transmission. + * Used for parameters for which the translation type is TR_CUSTOM. + * @param parameter The parameter to encode. Can be modified in place. + * @param index The parameter index (0 == first parameter). + */ + virtual void EncodeParameter(std::string& parameter, int index) + { + } + + /** Decode a parameter from server->server transmission. + * Not currently used in this version of InspIRCd. + * Used for parameters for which the translation type is TR_CUSTOM. + * @param parameter The parameter to decode. Can be modified in place. + * @param index The parameter index (0 == first parameter). + */ + virtual void DecodeParameter(std::string& parameter, int index) + { + } + /** Disable or enable this command. * @param setting True to disable the command. */ |