Skip to content

Commit

Permalink
🔨 Don't send pre-accept msg to non-friends
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jun 30, 2024
1 parent 7cd0dcc commit 061931e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/MyHandler/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 061931e

Please sign in to comment.