Shell module: Small cleanup

We already have a special function for stripping of special chars, so
why does the shell module still do it 'by hand'?


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1135 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-07-17 10:16:40 +00:00
parent 3c1e610cf5
commit 0003c28f7b

View File

@@ -150,9 +150,7 @@ private:
void CShellSock::ReadLine(const CString& sData) {
CString sLine = sData;
while (sLine.length() && (sLine[sLine.length() -1] == '\r' || sLine[sLine.length() -1] == '\n')) {
sLine = sLine.substr(0, sLine.length() -1);
}
sLine.TrimRight("\r\n");
CString::size_type a = sLine.find('\t');
while (a != CString::npos) {