Changed CString::Token() to split on a string rather than char

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@398 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-06-30 21:51:41 +00:00
parent edf0434fde
commit 3e0c33b053
4 changed files with 17 additions and 14 deletions
+3 -3
View File
@@ -105,7 +105,7 @@ int CZNC::Loop() {
}
if (File.Open(O_WRONLY | O_TRUNC | O_CREAT)) {
CString sData = m_sISpoofFormat.Token(0, false, '%') + pUser->GetIdent() + m_sISpoofFormat.Token(1, true, '%');
CString sData = m_sISpoofFormat.Token(0, false, "%") + pUser->GetIdent() + m_sISpoofFormat.Token(1, true, "%");
File.Write(sData + "\n");
File.Close();
}
@@ -635,8 +635,8 @@ bool CZNC::ParseConfig(const CString& sConfig) {
}
// If we have a regular line, figure out where it goes
CString sName = sLine.Token(0, false, '=');
CString sValue = sLine.Token(1, true, '=');
CString sName = sLine.Token(0, false, "=");
CString sValue = sLine.Token(1, true, "=");
sName.Trim();
sValue.Trim();