mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 08:50:43 -05:00
Default new profile name to launcher username
This commit is contained in:
parent
c334855919
commit
89b292e42b
@ -118,6 +118,12 @@ export class ProfileCallbacks {
|
|||||||
* Handle client/game/profile/nickname/reserved
|
* Handle client/game/profile/nickname/reserved
|
||||||
*/
|
*/
|
||||||
public getReservedNickname(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string> {
|
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");
|
return this.httpResponse.getBody("SPTarkov");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user