mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 19:43:49 +08:00
fix: examine errors that have been ignored in the 'CQ:at' parser (#1363)
#1332
This commit is contained in:
parent
1a78a4809a
commit
115a5f1da7
@ -954,7 +954,10 @@ func (bot *CQBot) ToElement(t string, d map[string]string, sourceType MessageSou
|
||||
if qq == "all" {
|
||||
return message.AtAll(), nil
|
||||
}
|
||||
t, _ := strconv.ParseInt(qq, 10, 64)
|
||||
t, err := strconv.ParseInt(qq, 10, 64)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := strings.TrimSpace(d["name"])
|
||||
if len(name) > 0 {
|
||||
name = "@" + name
|
||||
|
Loading…
x
Reference in New Issue
Block a user