1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

fix quick operation no response without at_sender.

This commit is contained in:
Mrs4s 2020-08-03 00:17:34 +08:00
parent e2227d582a
commit 4be73b2834

View File

@ -362,12 +362,14 @@ func (bot *CQBot) CQHandleQuickOperation(context, operation gjson.Result) MSG {
msgType := context.Get("message_type").Str
reply := operation.Get("reply")
if reply.Exists() {
/*
at := true
if operation.Get("at_sender").Exists() {
at = operation.Get("at_sender").Bool()
}
*/
// TODO: 处理at字段
if msgType == "group" && at {
if msgType == "group" {
bot.CQSendGroupMessage(context.Get("group_id").Int(), reply)
}
if msgType == "private" {