mioki 0.16.1 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-BiucMVzj.mjs";
2
- import { t as version } from "./package-Bvcr71Zp.mjs";
2
+ import { t as version } from "./package-CwoAh-rX.mjs";
3
3
  import fs, { default as fs$1 } from "node:fs";
4
4
  import util from "node:util";
5
5
  import path, { default as path$1 } from "node:path";
@@ -1408,11 +1408,10 @@ async function enablePlugin(bots, plugin, type = "external") {
1408
1408
  if (isPrivateMessageEvent(e)) {
1409
1409
  if (e.self_id !== bot$1.bot_id) return;
1410
1410
  }
1411
- const senderUserId = e.user_id;
1412
- const senderOperatorId = e.operator_id;
1413
- const isFromConnectedBot = senderUserId && bots.some((b) => b.bot_id === senderUserId);
1414
- const isFromConnectedBotOperator = senderOperatorId && bots.some((b) => b.bot_id === senderOperatorId);
1415
- if (isFromConnectedBot || isFromConnectedBotOperator) return;
1411
+ if (isMessageEvent(e)) {
1412
+ const senderUserId = e.user_id;
1413
+ if (senderUserId && bots.some((b) => b.bot_id === senderUserId)) return;
1414
+ }
1416
1415
  if (deduplicate && isDeduplicableEvent(e)) {
1417
1416
  if (deduplicator.isProcessed(e, dedupeScope)) return;
1418
1417
  deduplicator.markProcessed(e, dedupeScope);