Added nickname check to pmc response message send, kills profiles when name is null

This commit is contained in:
Dev 2024-09-26 21:01:01 +01:00
parent 058ccc2b29
commit ca8b61a001

View File

@ -49,6 +49,14 @@ export class PmcChatResponseService {
continue; 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 victimDetails = this.getVictimDetails(victim);
const message = this.chooseMessage(true, pmcData); const message = this.chooseMessage(true, pmcData);
if (message) { if (message) {