koishi-plugin-echo-cave 1.16.8 → 1.16.9

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.
Files changed (2) hide show
  1. package/lib/index.cjs +2 -4
  2. package/package.json +1 -1
package/lib/index.cjs CHANGED
@@ -189,10 +189,7 @@ function parseUserIds(userIds) {
189
189
  }
190
190
  }
191
191
  } catch (e) {
192
- const num = Number(userIdStr);
193
- if (!Number.isNaN(num)) {
194
- parsedUserIds.push(String(num));
195
- }
192
+ parsedUserIds.push(userIdStr.split(":")[1]);
196
193
  }
197
194
  }
198
195
  return {
@@ -715,6 +712,7 @@ async function addCave(ctx, session, cfg, userIds) {
715
712
  const messageId = quote.id;
716
713
  let parsedUserIds = [];
717
714
  if (userIds && userIds.length > 0) {
715
+ ctx.logger.info(`Original userIds in addCave: ${JSON.stringify(userIds)}`);
718
716
  const result = parseUserIds(userIds);
719
717
  if (result.error === "invalid_all_mention") {
720
718
  return session.text(".invalidAllMention");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-echo-cave",
3
3
  "description": "Group echo cave",
4
- "version": "1.16.8",
4
+ "version": "1.16.9",
5
5
  "main": "lib/index.cjs",
6
6
  "typings": "lib/index.d.ts",
7
7
  "type": "module",