Forgot one block

This commit is contained in:
Learath2 2017-03-04 10:58:02 +03:00
parent d475eddb88
commit cf9f3e3d38

View file

@ -2422,11 +2422,15 @@ void CServer::ConchainRconPasswordChange(IConsole::IResult *pResult, void *pUser
int KeySlot = pManager->DefaultKey(AUTHED_ADMIN);
if(KeySlot == -1)
{
pManager->AddAdminKey(pResult->GetString(0));//Shouldn't happen
}
else
{
pManager->UpdateKey(KeySlot, pResult->GetString(0), AUTHED_ADMIN);
pServer->LogoutKey(KeySlot, "key update");
}
}
}
void CServer::ConchainRconModPasswordChange(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)