From b5fd8daf2ec39e50a83048b835fe01b851d0cadf Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 6 May 2025 07:02:00 +0200 Subject: [PATCH] omit IRC in login response --- src/controllers/api/loginController.ts | 5 ++++- src/types/loginTypes.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/loginController.ts b/src/controllers/api/loginController.ts index 97c97e0c..8f368a67 100644 --- a/src/controllers/api/loginController.ts +++ b/src/controllers/api/loginController.ts @@ -107,10 +107,13 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b AmazonAuthToken: account.AmazonAuthToken, AmazonRefreshToken: account.AmazonRefreshToken, Nonce: account.Nonce, - IRC: config.myIrcAddresses ?? [myAddress], NRS: config.NRS, BuildLabel: buildLabel }; + if (version_compare(buildLabel, "2015.05.14.16.29") >= 0) { + // U17 and up + resp.IRC = config.myIrcAddresses ?? [myAddress]; + } if (version_compare(buildLabel, "2018.11.08.14.45") >= 0) { // U24 and up resp.ConsentNeeded = account.ConsentNeeded; diff --git a/src/types/loginTypes.ts b/src/types/loginTypes.ts index 5fcb0e53..5a7f9e46 100644 --- a/src/types/loginTypes.ts +++ b/src/types/loginTypes.ts @@ -51,7 +51,7 @@ export interface ILoginResponse extends IAccountAndLoginResponseCommons { platformCDNs?: string[]; NRS?: string[]; DTLS?: number; - IRC: string[]; + IRC?: string[]; HUB?: string; }