diff options
author | Adam <Adam@anope.org> | 2014-02-11 19:25:44 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-02-11 19:25:44 -0500 |
commit | 96fc940af7f20001b290cc65a76d0afb88a6160c (patch) | |
tree | a2639b598686fd9403429cd8e734b2b8563b5795 /src/socket_transport.cpp | |
parent | 8c8e6d464a28079531dfd2c4743e14beed611915 (diff) |
Only trim newlines and carriage returns in BufferedSocket::GetLine
Diffstat (limited to 'src/socket_transport.cpp')
-rw-r--r-- | src/socket_transport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket_transport.cpp b/src/socket_transport.cpp index 26653e55f..6293ea385 100644 --- a/src/socket_transport.cpp +++ b/src/socket_transport.cpp @@ -63,8 +63,8 @@ const Anope::string BufferedSocket::GetLine() return ""; Anope::string str = this->read_buffer.substr(0, s + 1); this->read_buffer.erase(0, s + 1); - this->read_buffer.ltrim(); - return str.trim(); + this->read_buffer.ltrim("\r\n"); + return str.trim("\r\n"); } void BufferedSocket::Write(const char *buffer, size_t l) |