mirror of
https://github.com/znc/znc.git
synced 2026-08-03 23:43:42 +02:00
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:
+1
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user