diff --git a/plugin/aichat/main.go b/plugin/aichat/main.go index d27bdaf8..49ebd7af 100644 --- a/plugin/aichat/main.go +++ b/plugin/aichat/main.go @@ -82,7 +82,7 @@ func init() { } ctx.State["__aichat_stor__"] = stor return ctx.ExtractPlainText() != "" && - (bool(!stor.noreplyat()) || (bool(stor.noreplyat()) && !ctx.Event.IsToMe)) + (!stor.noreplyat() || (stor.noreplyat() && !ctx.Event.IsToMe)) }).SetBlock(false).Handle(func(ctx *zero.Ctx) { gid := ctx.Event.GroupID if gid == 0 {