mirror of
https://github.com/znc/znc.git
synced 2026-05-04 20:42:33 +02:00
Better cleanup lines coming from network.
Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.
This commit is contained in:
@@ -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 << "]");
|
||||
|
||||
Reference in New Issue
Block a user