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.
- package/lib/index.cjs +2 -4
- 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
|
-
|
|
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");
|