koishi-plugin-ccb-plus 1.0.6 → 1.0.7
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.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -461,7 +461,7 @@ function applyCcbCommand(ctx, config, state) {
|
|
|
461
461
|
const senderOptOut = senderSetting?.optOut ?? config.defaultOptOut;
|
|
462
462
|
const senderIsInitial = !senderSetting;
|
|
463
463
|
if (senderOptOut) {
|
|
464
|
-
const message2 = senderIsInitial ? "你还未开启ccb功能。请先使用 ccb --on 来开启。" : "你已开启保护模式,无法ccb他人。请先使用 ccb --on 解除保护。";
|
|
464
|
+
const message2 = senderIsInitial ? "❌ 你还未开启ccb功能。请先使用 /ccb --on 来开启。" : "❌ 你已开启保护模式,无法ccb他人。请先使用 /ccb --on 解除保护。";
|
|
465
465
|
return message2;
|
|
466
466
|
}
|
|
467
467
|
const actorId = senderId;
|
|
@@ -514,7 +514,7 @@ function applyCcbCommand(ctx, config, state) {
|
|
|
514
514
|
}
|
|
515
515
|
if (overrides[actorId] !== true && targetOptOut) {
|
|
516
516
|
const nickname = await state.getUserNickname(session, targetUserId) || targetUserId;
|
|
517
|
-
const message2 = isInitialState ? `${nickname} 还未开启ccb功能。请让ta使用 ccb --on 来开启。` : `${nickname} 已开启保护模式,拒绝了和你ccb。请让ta使用 ccb --on 来允许被ccb。`;
|
|
517
|
+
const message2 = isInitialState ? `${nickname} 还未开启ccb功能。请让ta使用 /ccb --on 来开启。` : `${nickname} 已开启保护模式,拒绝了和你ccb。请让ta使用 /ccb --on 来允许被ccb。`;
|
|
518
518
|
return message2;
|
|
519
519
|
}
|
|
520
520
|
if (targetUserId === actorId && !config.selfCcb) {
|