diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-19 01:05:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-19 01:05:22 +0300 |
commit | 990c96c992c4cf21173c904dd85f0b378e1c89b0 (patch) | |
tree | a87e8b060a3bae6869e8945082fb9b11a6a60957 /src/net/messageout.h | |
parent | 3945c533f8930093b6101b00827a37d6bbde0fb4 (diff) | |
download | manaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.gz manaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.bz2 manaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.xz manaverse-990c96c992c4cf21173c904dd85f0b378e1c89b0.zip |
Hide passwords from packets logs.
Diffstat (limited to 'src/net/messageout.h')
-rw-r--r-- | src/net/messageout.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/messageout.h b/src/net/messageout.h index 39a2e68bd..4445bbbe8 100644 --- a/src/net/messageout.h +++ b/src/net/messageout.h @@ -57,6 +57,13 @@ class MessageOut virtual void writeString(const std::string &string, int length = -1); /** + * Writes a string. If a fixed length is not given (-1), it is stored + * as a short at the start of the string. + */ + virtual void writeStringNoLog(const std::string &string, + int length = -1); + + /** * Returns the content of the message. */ virtual char *getData() const; |