From e41a2c0d09f906b2af6a548418600c4a7097cc94 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 11 Sep 2020 23:22:43 +0800 Subject: [PATCH] Fix CombinedScope --- .../kotlin/net/mamoe/mirai/console/util/MessageScope.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/util/MessageScope.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/util/MessageScope.kt index eb95259d4..91309fbba 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/util/MessageScope.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/util/MessageScope.kt @@ -526,8 +526,8 @@ internal fun MessageScope.asSequence(): Sequence { } private class CombinedScope( - private val first: MessageScope, - private val second: MessageScope + val first: MessageScope, + val second: MessageScope, ) : MessageScope { override val realTarget: Any? get() = null @@ -549,7 +549,7 @@ private class CombinedScope( } private class CommandSenderAsMessageScope( - private val sender: CommandSender + private val sender: CommandSender, ) : MessageScope { override val realTarget: Any? get() = sender.user ?: sender // ConsoleCommandSender @@ -564,7 +564,7 @@ private class CommandSenderAsMessageScope( } private class ContactAsMessageScope( - private val sender: Contact + private val sender: Contact, ) : MessageScope { override val realTarget: Any? get() = sender