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:
1 parent
cae48ab256
commit
607a7f1c16
11 files changed
+29
-27
No files matched your search
+1
-1
@@ -901,7 +901,7 @@ void CClient::UserCommand(const CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned int uLineCount = strtoul(sLine.Token(2).c_str(), NULL, 10);
|
||||
unsigned int uLineCount = sLine.Token(2).ToUInt();
|
||||
|
||||
if (uLineCount > 500) {
|
||||
PutStatus("Max linecount is 500.");
|
||||
|
||||
Reference in new issue
Block a user