1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 11:43:12 +02:00

Only trim newlines and carriage returns in BufferedSocket::GetLine

This commit is contained in:
Adam
2014-02-11 19:25:44 -05:00
parent 8c8e6d464a
commit 96fc940af7
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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)