summaryrefslogtreecommitdiff
path: root/src/net/messageout.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-19 01:05:22 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-19 01:05:22 +0300
commit990c96c992c4cf21173c904dd85f0b378e1c89b0 (patch)
treea87e8b060a3bae6869e8945082fb9b11a6a60957 /src/net/messageout.h
parent3945c533f8930093b6101b00827a37d6bbde0fb4 (diff)
downloadmv-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.gz
mv-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.bz2
mv-990c96c992c4cf21173c904dd85f0b378e1c89b0.tar.xz
mv-990c96c992c4cf21173c904dd85f0b378e1c89b0.zip
Hide passwords from packets logs.
Diffstat (limited to 'src/net/messageout.h')
-rw-r--r--src/net/messageout.h7
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;