mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-06 16:10:10 +08:00
Merge remote-tracking branch 'origin/master'
# Conflicts: # mirai-core/src/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt
This commit is contained in:
commit
2e20d75298
@ -147,12 +147,12 @@ class ServerFriendMessageEventPacket(input: DataInputStream, packetId: ByteArray
|
|||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
override fun decode() {
|
override fun decode() {
|
||||||
//start at Sep1.0:27
|
//start at Sep1.0:27
|
||||||
qq = input.readInt()
|
qq = input.readInt(0)
|
||||||
val msgLength = input.readShort(22)
|
val msgLength = input.readShort(22)
|
||||||
val fontLength = input.readShort(93+msgLength)
|
val fontLength = input.readShort(93+msgLength)
|
||||||
val offset = msgLength+fontLength
|
val offset = msgLength+fontLength
|
||||||
message = if(input.readByte(97+offset).toUHexString() == "02"){
|
message = if(input.readByte(97+offset).toUHexString() == "02"){
|
||||||
"[face" + input.goto(103+offset).readVarString(1) + ".gif]"
|
"[face" + input.goto(103+offset).readByte(1).toInt().toString() + ".gif]"
|
||||||
//.gif
|
//.gif
|
||||||
}else {
|
}else {
|
||||||
val offset2 = input.readShort(101 + offset)
|
val offset2 = input.readShort(101 + offset)
|
||||||
|
Loading…
Reference in New Issue
Block a user