From ec780aa64cee128f2a46019c1d1ff9c1b4bbc8f4 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 14 Apr 2024 16:57:47 +0800 Subject: [PATCH] add some --- core/wiki/portal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/wiki/portal.go b/core/wiki/portal.go index 00b0d373..86231788 100644 --- a/core/wiki/portal.go +++ b/core/wiki/portal.go @@ -71,6 +71,7 @@ const PORTAL = "portal" func init() { Index.MergeCommands(ice.Commands{ PORTAL: {Name: "portal path auto", Help: "官网", Role: aaa.VOID, Actions: ice.MergeActions(ice.Actions{ + ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { aaa.White(m, ice.VAR_PORTAL) }}, ctx.RUN: {Hand: func(m *ice.Message, arg ...string) { if p := path.Join(ice.VAR_PORTAL, path.Join(arg...)); (m.Option(ice.DEBUG) == ice.TRUE || !nfs.ExistsFile(m, p)) && aaa.Right(m.Spawn(), arg) { ctx.Run(m, arg...)