Moved CUtils::Token() into CString class

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@244 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-07 09:18:56 +00:00
parent 5f61128b18
commit 24950d24e4
11 changed files with 129 additions and 147 deletions
+3 -3
View File
@@ -196,8 +196,8 @@ bool CUser::AddServer(const CString& sName) {
CString sLine = sName;
CUtils::Trim(sLine);
CString sHost = CUtils::Token(sLine, 0);
CString sPort = CUtils::Token(sLine, 1);
CString sHost = sLine.Token(0);
CString sPort = sLine.Token(1);
if (CUtils::Left(sPort, 1) == "+") {
bSSL = true;
@@ -205,7 +205,7 @@ bool CUser::AddServer(const CString& sName) {
}
unsigned short uPort = strtoul(sPort.c_str(), NULL, 10);
CString sPass = CUtils::Token(sLine, 2, true);
CString sPass = sLine.Token(2, true);
return AddServer(sHost, uPort, sPass, bSSL);
}