diff --git a/src/classes/MyHandler/MyHandler.ts b/src/classes/MyHandler/MyHandler.ts index 0ff836b92..ab2d7634b 100644 --- a/src/classes/MyHandler/MyHandler.ts +++ b/src/classes/MyHandler/MyHandler.ts @@ -2050,7 +2050,7 @@ export default class MyHandler extends Handler { `accepting. Summary:\n${JSON.stringify(summarize(offer, this.bot, 'summary-accepting', false), null, 4)}` ); - if (opt.offerReceived.sendPreAcceptMessage.enable) { + if (opt.offerReceived.sendPreAcceptMessage.enable && this.bot.friends.isFriend(offer.partner)) { const preAcceptMessage = opt.customMessage.accepted.automatic; MyHandler.sendPreAcceptedMessage(