mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +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
@@ -71,9 +71,7 @@ void CIRCSock::Quit() {
|
||||
void CIRCSock::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->GetUserName() << ") IRC -> ZNC [" << sLine << "]" << endl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user