Get rid of most strtoul() and atoi() calls and use CString's features instead

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1320 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-01-04 10:48:02 +00:00
parent cae48ab256
commit 607a7f1c16
11 changed files with 29 additions and 27 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ public:
return;
} else
{
u_int iNum = atoi(sWhich.c_str());
u_int iNum = sWhich.ToUInt();
if (iNum >= m_vMessages.size())
{
PutModNotice("Illegal Message # Requested", "away");
@@ -241,7 +241,7 @@ public:
m_vMessages.erase(m_vMessages.begin() + a--);
continue;
}
time_t iTime = strtol(sTime.c_str(), NULL, 10);
time_t iTime = sTime.ToULong();
char szFormat[64];
struct tm t;
localtime_r(&iTime, &t);