Skip to content

Commit

Permalink
修复 FullMatchRule 中调用 ctx.NickName() 的 panic 问题 (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kittengarten committed May 10, 2024
1 parent 8fa928d commit a9dfbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/dish/dish.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func init() {
return
}

name := ctx.NickName()
name := ctx.CardOrNickName(ctx.Event.UserID)
var d dish
if err := db.Pick("dish", &d); err != nil {
ctx.SendChain(message.Text("小店好像出错了,暂时端不出菜来惹"))
Expand Down

0 comments on commit a9dfbdb

Please sign in to comment.