mirror of
https://github.com/mamoe/mirai.git
synced 2026-09-05 22:54:55 +08:00
Fix recursive call
This commit is contained in:
@@ -63,10 +63,7 @@ private constructor(val target: Long, val display: String) :
|
||||
@JvmName("followedBy")
|
||||
@JvmSynthetic
|
||||
override fun followedBy1(tail: Message): CombinedMessage {
|
||||
if (tail is PlainText && tail.stringValue.startsWith(' ')) {
|
||||
return followedByInternalForBinaryCompatibility(tail)
|
||||
}
|
||||
return followedByInternalForBinaryCompatibility(PlainText(" ") + tail)
|
||||
return followedByInternalForBinaryCompatibility(tail)
|
||||
}
|
||||
|
||||
override fun followedBy(tail: Message): MessageChain {
|
||||
|
||||
@@ -49,10 +49,7 @@ object AtAll :
|
||||
@JvmName("followedBy")
|
||||
@JvmSynthetic
|
||||
override fun followedBy1(tail: Message): CombinedMessage {
|
||||
if (tail is PlainText && tail.stringValue.startsWith(' ')) {
|
||||
return followedByInternalForBinaryCompatibility(tail)
|
||||
}
|
||||
return followedByInternalForBinaryCompatibility(PlainText(" ") + tail)
|
||||
return followedByInternalForBinaryCompatibility(tail)
|
||||
}
|
||||
|
||||
override fun followedBy(tail: Message): MessageChain {
|
||||
|
||||
Reference in New Issue
Block a user