From: <ps...@us...> - 2009-03-31 09:04:51
|
Revision: 1462 http://znc.svn.sourceforge.net/znc/?rev=1462&view=rev Author: psychon Date: 2009-03-31 09:04:47 +0000 (Tue, 31 Mar 2009) Log Message: ----------- Micro optimization Modified Paths: -------------- trunk/DCCBounce.cpp Modified: trunk/DCCBounce.cpp =================================================================== --- trunk/DCCBounce.cpp 2009-03-31 08:24:34 UTC (rev 1461) +++ trunk/DCCBounce.cpp 2009-03-31 09:04:47 UTC (rev 1462) @@ -64,12 +64,8 @@ } void CDCCBounce::ReadLine(const CString& sData) { - CString sLine = sData; + CString sLine = sData.TrimRight_n("\r\n"); - while ((sLine.Right(1) == "\r") || (sLine.Right(1) == "\n")) { - sLine.RightChomp(); - } - DEBUG(GetSockName() << " <- [" << sLine << "]"); PutPeer(sLine); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |