From 8a1c4ab9436dc31188c00a69c9594871bb81d7fb Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 26 Jul 2023 22:04:44 +0800 Subject: [PATCH] add some --- core/wiki/spark.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/wiki/spark.go b/core/wiki/spark.go index 2a4ecc29..e7f3193d 100644 --- a/core/wiki/spark.go +++ b/core/wiki/spark.go @@ -68,7 +68,10 @@ func init() { Index.MergeCommands(ice.Commands{ SPARK: {Name: "spark type=inner,shell,redis,mysql text", Help: "段落", Actions: ice.MergeActions(ice.Actions{ ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { - ice.AddRender(ice.RENDER_SCRIPT, func(msg *ice.Message, args ...ice.Any) string { return m.Cmdx(SPARK, SHELL, args) }) + ice.AddRender(ice.RENDER_SCRIPT, func(msg *ice.Message, args ...ice.Any) string { + m.Option("_cmd_count", 0) + return m.Cmdx(SPARK, SHELL, args) + }) }}, "inner": {Hand: func(m *ice.Message, arg ...string) { if strings.Contains(arg[0], lex.NL) {