mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +02:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user