We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f837ce commit 93f01d9Copy full SHA for 93f01d9
1 file changed
astrbot/core/pipeline/result_decorate/stage.py
@@ -406,11 +406,15 @@ async def process(
406
is_private = event.get_message_type() == MessageType.FRIEND_MESSAGE
407
should_quote = (
408
self.reply_with_quote_scope == "all"
409
- or (self.reply_with_quote_scope == "private_only" and is_private)
410
- or (self.reply_with_quote_scope == "group_only" and not is_private)
+ or (
+ self.reply_with_quote_scope == "private_only" and is_private
411
+ )
412
413
+ self.reply_with_quote_scope == "group_only"
414
+ and not is_private
415
416
)
417
if should_quote and not any(
418
isinstance(item, File) for item in result.chain
419
):
420
result.chain.insert(0, Reply(id=event.message_obj.message_id))
-
0 commit comments