Commit 770c5cd5 authored by Him188's avatar Him188

Fix recursive call

parent b9a3675d
...@@ -63,10 +63,7 @@ private constructor(val target: Long, val display: String) : ...@@ -63,10 +63,7 @@ private constructor(val target: Long, val display: String) :
@JvmName("followedBy") @JvmName("followedBy")
@JvmSynthetic @JvmSynthetic
override fun followedBy1(tail: Message): CombinedMessage { override fun followedBy1(tail: Message): CombinedMessage {
if (tail is PlainText && tail.stringValue.startsWith(' ')) { return followedByInternalForBinaryCompatibility(tail)
return followedByInternalForBinaryCompatibility(tail)
}
return followedByInternalForBinaryCompatibility(PlainText(" ") + tail)
} }
override fun followedBy(tail: Message): MessageChain { override fun followedBy(tail: Message): MessageChain {
......
...@@ -49,10 +49,7 @@ object AtAll : ...@@ -49,10 +49,7 @@ object AtAll :
@JvmName("followedBy") @JvmName("followedBy")
@JvmSynthetic @JvmSynthetic
override fun followedBy1(tail: Message): CombinedMessage { override fun followedBy1(tail: Message): CombinedMessage {
if (tail is PlainText && tail.stringValue.startsWith(' ')) { return followedByInternalForBinaryCompatibility(tail)
return followedByInternalForBinaryCompatibility(tail)
}
return followedByInternalForBinaryCompatibility(PlainText(" ") + tail)
} }
override fun followedBy(tail: Message): MessageChain { override fun followedBy(tail: Message): MessageChain {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment