From 4dd8802bf917cf2b38ea43d1dcf9f344eb14421f Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 3 Feb 2009 19:43:35 +0000 Subject: [PATCH] shell: Use CString::Replace() -.- git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1370 726aef4b-f618-498e-8847-2d620e286838 --- modules/shell.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/shell.cpp b/modules/shell.cpp index f16c9567..24751d28 100644 --- a/modules/shell.cpp +++ b/modules/shell.cpp @@ -165,12 +165,7 @@ void CShellSock::ReadLine(const CString& sData) { CString sLine = sData; sLine.TrimRight("\r\n"); - - CString::size_type a = sLine.find('\t'); - while (a != CString::npos) { - sLine.replace(a, 1, " "); - a = sLine.find('\t'); - } + sLine.Replace("\t", " "); m_pParent->SetClient(m_pClient); m_pParent->PutShell(sLine);