mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Fix recursive call
This commit is contained in:
parent
b9a3675dad
commit
770c5cd5a2
@ -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 :
|
|||||||
@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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user