diff options
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) |