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
+5 -2
View File
@@ -16,6 +16,9 @@
* Author: imaginos <imaginos@imaginos.net>
*
* $Log$
* Revision 1.10 2005/05/07 09:18:56 prozacx
* Moved CUtils::Token() into CString class
*
* Revision 1.9 2005/05/05 18:11:04 prozacx
* Changed all references to std::string over to CString
*
@@ -419,8 +422,8 @@ public:
if ( strncasecmp( sMessage.c_str(), "DCC SCHAT ", 10 ) == 0 )
{
// chat ip port
unsigned long iIP = strtoul( CUtils::Token( sMessage, 3 ).c_str(), NULL, 10 );
unsigned short iPort = strtoul( CUtils::Token( sMessage, 4 ).c_str(), NULL, 10 );
unsigned long iIP = strtoul( sMessage.Token( 3 ).c_str(), NULL, 10 );
unsigned short iPort = strtoul( sMessage.Token( 4 ).c_str(), NULL, 10 );
if ( ( iIP > 0 ) && ( iPort > 0 ) )
{