mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 09:10:11 +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")
|
||||
@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 {
|
||||
|
Loading…
Reference in New Issue
Block a user