/**
* SAVE command - force nick change to UID on timestamp match
*/
-CmdResult CommandSave::Handle(User* user, std::vector<std::string>& params)
+CmdResult CommandSave::Handle(User* user, Params& params)
{
User* u = ServerInstance->FindUUID(params[0]);
- if ((!u) || (IS_SERVER(u)))
+ if (!u)
return CMD_FAILURE;
- time_t ts = atol(params[1].c_str());
+ time_t ts = ConvToNum<time_t>(params[1]);
if (u->age == ts)
u->ChangeNick(u->uuid, SavedTimestamp);