From 03c5e3108a86e91111871eea5d1a2d9ad71b4d3c Mon Sep 17 00:00:00 2001 From: shylinux Date: Thu, 10 Aug 2023 21:28:11 +0800 Subject: [PATCH] add some --- base/ctx/command.go | 3 ++- base/web/space.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/base/ctx/command.go b/base/ctx/command.go index 6a587e3c..ad5465f2 100644 --- a/base/ctx/command.go +++ b/base/ctx/command.go @@ -50,11 +50,12 @@ func _command_search(m *ice.Message, kind, name, text string) { const ( INDEX = "index" + OPTS = "opts" ARGS = "args" + SHIP = "ship" STYLE = "style" DISPLAY = "display" ACTION = "action" - SHIP = "ship" RUN = "run" ) const COMMAND = "command" diff --git a/base/web/space.go b/base/web/space.go index f6d441be..6a786dfd 100644 --- a/base/web/space.go +++ b/base/web/space.go @@ -73,7 +73,7 @@ func _space_fork(m *ice.Message) { } func _space_handle(m *ice.Message, safe bool, name string, c *websocket.Conn) { defer m.Cost(SPACE, name) - m.Option(ice.MSG_USERROLE, "") + m.Options(ice.MSG_USERROLE, "", mdb.TYPE, "", mdb.NAME, "", cli.DAEMON, "") for { _, b, e := c.ReadMessage() if e != nil {