mirror of
https://github.com/znc/znc.git
synced 2026-08-08 18:03:22 +02:00
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
-1
@@ -47,7 +47,7 @@ public:
|
||||
PutModule("Added!");
|
||||
Save();
|
||||
} else if (sCmdName == "del") {
|
||||
u_int iNum = atoi(sCommand.Token(1, true).c_str());
|
||||
u_int iNum = sCommand.Token(1, true).ToUInt();
|
||||
if (iNum > m_vPerform.size() || iNum <= 0) {
|
||||
PutModule("Illegal # Requested");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user