Better cleanup lines coming from network.

Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.
This commit is contained in:
Alexey Sokolov
2018-07-13 22:50:47 +01:00
parent a7bfbd9381
commit d22fef8620
2 changed files with 4 additions and 2 deletions

View File

@@ -156,7 +156,8 @@ void CIRCSock::Quit(const CString& sQuitMsg) {
void CIRCSock::ReadLine(const CString& sData) {
CString sLine = sData;
sLine.TrimRight("\n\r");
sLine.Replace("\n", "");
sLine.Replace("\r", "");
DEBUG("(" << m_pNetwork->GetUser()->GetUserName() << "/"
<< m_pNetwork->GetName() << ") IRC -> ZNC [" << sLine << "]");