mirror of
https://shylinux.com/x/icebergs
synced 2025-05-01 19:19:24 +08:00
opt some
This commit is contained in:
parent
5e951c4c36
commit
994f64a274
@ -22,8 +22,11 @@ func _header_agent(m *ice.Message, arg ...string) {
|
||||
func _header_check(m *ice.Message, arg ...string) bool {
|
||||
if m.Option(web.SHARE) != "" {
|
||||
m.Cmd(web.SHARE, m.Option(web.SHARE), ice.OptionFields("")).Tables(func(value ice.Maps) {
|
||||
m.Option(ice.MSG_USERNAME, value["username"])
|
||||
m.Option(ice.MSG_USERROLE, value["userrole"])
|
||||
switch value[mdb.TYPE] {
|
||||
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) != "" {
|
||||
|
@ -71,7 +71,6 @@ func init() {
|
||||
), Actions: ice.MergeAction(ice.Actions{
|
||||
mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) {
|
||||
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) {
|
||||
_task_modify(m, arg[0], arg[1], arg[2:]...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user