From ca8b61a001fe7a90a213748005046f73e8de468d Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 26 Sep 2024 21:01:01 +0100 Subject: [PATCH] Added nickname check to pmc response message send, kills profiles when name is null --- project/src/services/PmcChatResponseService.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/project/src/services/PmcChatResponseService.ts b/project/src/services/PmcChatResponseService.ts index e693b38a..c8a94ffb 100644 --- a/project/src/services/PmcChatResponseService.ts +++ b/project/src/services/PmcChatResponseService.ts @@ -49,6 +49,14 @@ export class PmcChatResponseService { continue; } + if (!victim.Name) { + this.logger.warning( + `Victim: ${victim.ProfileId} does not have a nickname, skipping pmc response message send`, + ); + + continue; + } + const victimDetails = this.getVictimDetails(victim); const message = this.chooseMessage(true, pmcData); if (message) {