Use CString::TrimRight() to make this code more readable

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1321 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-01-05 11:45:12 +00:00
parent 607a7f1c16
commit 9933ba9c3e
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -63,9 +63,7 @@ CClient::~CClient() {
void CClient::ReadLine(const CString& sData) {
CString sLine = sData;
while ((sLine.Right(1) == "\r") || (sLine.Right(1) == "\n")) {
sLine.RightChomp();
}
sLine.TrimRight("\n\r");
DEBUG_ONLY(cout << "(" << ((m_pUser) ? m_pUser->GetUserName() : GetRemoteIP()) << ") CLI -> ZNC [" << sLine << "]" << endl);