From d8a41a5ee1f7dd91e356e9119f69fed2b5b8ec81 Mon Sep 17 00:00:00 2001 From: fumiama Date: Sat, 27 Nov 2021 01:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20=E4=BF=AE=E5=A4=8D=20co?= =?UTF-8?q?ntrol=20=E6=89=BE=E4=B8=8D=E5=88=B0=E6=9C=8D=E5=8A=A1=E6=97=B6?= =?UTF-8?q?=20panic=20(#81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/rule.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/control/rule.go b/control/rule.go index cbdfae11..284e0f4a 100644 --- a/control/rule.go +++ b/control/rule.go @@ -177,6 +177,7 @@ func init() { service, ok := Lookup(model.Args) if !ok { ctx.SendChain(message.Text("没有找到指定服务!")) + return } grp := ctx.Event.GroupID if grp == 0 { @@ -201,6 +202,7 @@ func init() { service, ok := Lookup(model.Args) if !ok { ctx.SendChain(message.Text("没有找到指定服务!")) + return } grp := ctx.Event.GroupID if grp == 0 { @@ -218,6 +220,7 @@ func init() { service, ok := Lookup(model.Args) if !ok { ctx.SendChain(message.Text("没有找到指定服务!")) + return } if service.options.Help != "" { ctx.SendChain(message.Text(service.options.Help))