0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 06:50:43 -05:00

Default new profile name to launcher username

This commit is contained in:
DrakiaXYZ 2025-01-09 18:32:00 -08:00
parent c334855919
commit 89b292e42b

View File

@ -118,6 +118,12 @@ export class ProfileCallbacks {
* Handle client/game/profile/nickname/reserved
*/
public getReservedNickname(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string> {
const fullProfile = this.profileHelper.getFullProfile(sessionID);
if (fullProfile?.info?.username)
{
return this.httpResponse.getBody(fullProfile.info.username);
}
return this.httpResponse.getBody("SPTarkov");
}