forked from x/icebergs
add some
This commit is contained in:
parent
deddfc9457
commit
fc61c4d320
@ -278,6 +278,7 @@ func Show(m *ice.Message, file string) bool {
|
|||||||
if IsSourceFile(m, kit.Ext(file)) {
|
if IsSourceFile(m, kit.Ext(file)) {
|
||||||
m.Cmdy(CAT, file)
|
m.Cmdy(CAT, file)
|
||||||
} else {
|
} else {
|
||||||
|
m.ProcessOpen(p)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -386,12 +386,11 @@ func init() {
|
|||||||
nfs.Trash(m, path.Join(ice.USR_LOCAL_WORK, m.Option(mdb.NAME)))
|
nfs.Trash(m, path.Join(ice.USR_LOCAL_WORK, m.Option(mdb.NAME)))
|
||||||
}},
|
}},
|
||||||
OPEN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
OPEN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Debug("what %v", m.Option(ice.MSG_USERHOST))
|
|
||||||
m.Debug("what %v", m.Option(ice.MSG_USERWEB))
|
|
||||||
if m.Option(mdb.TYPE) == MASTER && m.IsLocalhost() {
|
if m.Option(mdb.TYPE) == MASTER && m.IsLocalhost() {
|
||||||
m.ProcessOpen(SpideOrigin(m, m.Option(mdb.NAME)))
|
m.ProcessOpen(SpideOrigin(m, m.Option(mdb.NAME)))
|
||||||
} else {
|
} else {
|
||||||
ProcessIframe(m, m.Option(mdb.NAME), kit.Select(S(m.Option(mdb.NAME)), SpideOrigin(m, m.Option(mdb.NAME)), m.Option(mdb.TYPE) == MASTER), arg...)
|
m.ProcessOpen(S(m.Option(mdb.NAME)))
|
||||||
|
// ProcessIframe(m, m.Option(mdb.NAME), kit.Select(S(m.Option(mdb.NAME)), SpideOrigin(m, m.Option(mdb.NAME)), m.Option(mdb.TYPE) == MASTER), arg...)
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
GRANT: {Hand: func(m *ice.Message, arg ...string) {
|
GRANT: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user