1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-02 03:29:25 +08:00
This commit is contained in:
harveyshao 2022-07-09 21:05:10 +08:00
parent 5e951c4c36
commit 994f64a274
2 changed files with 5 additions and 3 deletions

View File

@ -22,8 +22,11 @@ func _header_agent(m *ice.Message, arg ...string) {
func _header_check(m *ice.Message, arg ...string) bool { func _header_check(m *ice.Message, arg ...string) bool {
if m.Option(web.SHARE) != "" { if m.Option(web.SHARE) != "" {
m.Cmd(web.SHARE, m.Option(web.SHARE), ice.OptionFields("")).Tables(func(value ice.Maps) { m.Cmd(web.SHARE, m.Option(web.SHARE), ice.OptionFields("")).Tables(func(value ice.Maps) {
m.Option(ice.MSG_USERNAME, value["username"]) switch value[mdb.TYPE] {
m.Option(ice.MSG_USERROLE, value["userrole"]) case "field", "storm":
m.Option(ice.MSG_USERNAME, value[aaa.USERNAME])
m.Option(ice.MSG_USERROLE, value[aaa.USERROLE])
}
}) })
} }
if m.Option(ice.MSG_USERNAME) != "" { if m.Option(ice.MSG_USERNAME) != "" {

View File

@ -71,7 +71,6 @@ func init() {
), Actions: ice.MergeAction(ice.Actions{ ), Actions: ice.MergeAction(ice.Actions{
mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) { mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) {
m.Cmdy(TODO, mdb.INPUTS, arg) m.Cmdy(TODO, mdb.INPUTS, arg)
m.Cmdy(TASK, mdb.INPUTS, arg)
}}, }},
mdb.PLUGIN: {Name: "plugin extra.ctx extra.cmd extra.arg", Help: "插件", Hand: func(m *ice.Message, arg ...string) { mdb.PLUGIN: {Name: "plugin extra.ctx extra.cmd extra.arg", Help: "插件", Hand: func(m *ice.Message, arg ...string) {
_task_modify(m, arg[0], arg[1], arg[2:]...) _task_modify(m, arg[0], arg[1], arg[2:]...)