From cf3fb9578309f93274327ed711683c5f4469235d Mon Sep 17 00:00:00 2001 From: shylinux Date: Thu, 29 Apr 2021 13:00:46 +0800 Subject: [PATCH] opt login --- core/chat/header.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/chat/header.go b/core/chat/header.go index 26908b3a..8d6b235d 100644 --- a/core/chat/header.go +++ b/core/chat/header.go @@ -54,8 +54,9 @@ func init() { P_HEADER: {Name: "/header", Help: "标题栏", Action: map[string]*ice.Action{ "auth": {Name: "auth space", Help: "用户授权", Hand: func(m *ice.Message, arg ...string) { - if m.Option(ice.MSG_USERPOD) != "" { - m.Cmd(web.SPACE, m.Option(ice.MSG_USERPOD), m.Prefix(P_HEADER), kit.MDB_ACTION, "auth", arg) + if pod := m.Option(kit.SSH_POD); pod != "" { + m.Option(kit.SSH_POD, "") + m.Cmd(web.SPACE, pod, m.Prefix(P_HEADER), kit.MDB_ACTION, "auth", arg) return }