From 07e135547e1919048756a751adb71921b5beba94 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 18 Jan 2009 13:12:57 +0000 Subject: (svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so. --- src/network/core/packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/core/packet.h') diff --git a/src/network/core/packet.h b/src/network/core/packet.h index 1dd35a70d..f0202eee6 100644 --- a/src/network/core/packet.h +++ b/src/network/core/packet.h @@ -62,7 +62,7 @@ public: uint16 Recv_uint16(); uint32 Recv_uint32(); uint64 Recv_uint64(); - void Recv_string(char *buffer, size_t size); + void Recv_string(char *buffer, size_t size, bool allow_newlines = false); }; Packet *NetworkSend_Init(PacketType type); -- cgit v1.2.3-70-g09d2