Skip to content

Commit e2eafca

Browse files
authored
fix: 修复群成员被管理T出时 操作员数据未解析的问题 (#165)
1 parent 4d0c204 commit e2eafca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/listener.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ func decodeOlPushServicePacket(c *QQClient, pkt *network.Packet) (any, error) {
8787
if err != nil {
8888
return nil, err
8989
}
90-
// 3 是bot自身被踢出,Operator字段会是一个protobuf
91-
if pb.DecreaseType == 3 && pb.Operator != nil {
90+
// 3 是bot自身被踢出,131 是群成员被踢出,Operator字段会是一个protobuf
91+
if (pb.DecreaseType == 3 || pb.DecreaseType == 131) && pb.Operator != nil {
9292
Operator := message.OperatorInfo{}
9393
err = proto.Unmarshal(pb.Operator, &Operator)
9494
if err != nil {

0 commit comments

Comments
 (0)