Skip to content

Commit

Permalink
Merge branch '4.0.0-DEV' into saveserver-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
chompDev authored Jan 10, 2025
2 parents 56d666c + 9612ca2 commit 57abab3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/src/callbacks/ProfileCallbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,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");
}

Expand Down

0 comments on commit 57abab3

Please sign in to comment.