]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_xline_db.cpp
Fix some remaining uses of ato[il].
[user/henk/code/inspircd.git] / src / modules / m_xline_db.cpp
index 00605f259373898a2fe890ee54db10017d7ada58..97531aae835c04b14bb3679ae4aeb384f1e366f2 100644 (file)
@@ -211,8 +211,8 @@ class ModuleXLineDB
                                        continue;
                                }
 
-                               XLine* xl = xlf->Generate(ServerInstance->Time(), atoi(command_p[5].c_str()), command_p[3], command_p[6], command_p[2]);
-                               xl->SetCreateTime(atoi(command_p[4].c_str()));
+                               XLine* xl = xlf->Generate(ServerInstance->Time(), ConvToNum<unsigned long>(command_p[5]), command_p[3], command_p[6], command_p[2]);
+                               xl->SetCreateTime(ConvToNum<time_t>(command_p[4]));
 
                                if (ServerInstance->XLines->AddLine(xl, NULL))
                                {