1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-28 18:22:02 +08:00
This commit is contained in:
shaoying 2022-10-23 14:26:57 +08:00
parent f0ce38fdc1
commit d76ecc9cbc

View File

@ -92,16 +92,17 @@ func init() {
}}, }},
ice.PLAY: {Name: "play", Help: "演示"}, ice.PLAY: {Name: "play", Help: "演示"},
}, ctx.CmdAction(), mdb.HashAction()), Hand: func(m *ice.Message, arg ...string) { }, ctx.CmdAction(), mdb.HashAction()), Hand: func(m *ice.Message, arg ...string) {
m.Option(nfs.DIR_REG, m.Config(lex.REGEXP))
if len(arg) == 0 { if len(arg) == 0 {
arg = append(arg, "src/") arg = append(arg, "src/")
} }
m.Option(nfs.DIR_REG, m.Config(lex.REGEXP))
if m.Option(nfs.DIR_DEEP, ice.TRUE); !_wiki_list(m, m.CommandKey(), arg...) { if m.Option(nfs.DIR_DEEP, ice.TRUE); !_wiki_list(m, m.CommandKey(), arg...) {
if !nfs.ExistsFile(m, arg[0]) && nfs.ExistsFile(m, path.Join("src", arg[0])) { if !nfs.ExistsFile(m, arg[0]) && nfs.ExistsFile(m, path.Join(ice.SRC, arg[0])) {
arg[0] = path.Join("src/", arg[0]) arg[0] = path.Join(ice.SRC, arg[0])
} }
ctx.DisplayLocal(m, "") ctx.DisplayLocal(m, "")
_word_show(m, arg[0]) _word_show(m, arg[0])
m.StatusTime()
} }
}}, }},
}}) }})