forked from x/icebergs
opt some
This commit is contained in:
parent
c4fe0b8f4b
commit
1976d83a49
@ -140,6 +140,9 @@ func init() {
|
|||||||
if len(arg) == 0 || m.Length() > 0 {
|
if len(arg) == 0 || m.Length() > 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if len(arg) == 1 {
|
||||||
|
arg = kit.Split(arg[0])
|
||||||
|
}
|
||||||
_daemon_exec(m, _system_cmd(m, arg...))
|
_daemon_exec(m, _system_cmd(m, arg...))
|
||||||
}},
|
}},
|
||||||
}})
|
}})
|
||||||
|
@ -107,7 +107,11 @@ func PrevPage(m *ice.Message, total string, arg ...string) {
|
|||||||
m.ProcessHold()
|
m.ProcessHold()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if offends == 0 {
|
||||||
|
m.ProcessRewrite("offend", "")
|
||||||
|
} else {
|
||||||
m.ProcessRewrite("offend", offends)
|
m.ProcessRewrite("offend", offends)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
func NextPage(m *ice.Message, total string, arg ...string) {
|
func NextPage(m *ice.Message, total string, arg ...string) {
|
||||||
@ -118,7 +122,11 @@ func NextPage(m *ice.Message, total string, arg ...string) {
|
|||||||
m.ProcessHold()
|
m.ProcessHold()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if offends == 0 {
|
||||||
|
m.ProcessRewrite("offend", "")
|
||||||
|
} else {
|
||||||
m.ProcessRewrite("offend", offends)
|
m.ProcessRewrite("offend", offends)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
func NextPageLimit(m *ice.Message, total string, arg ...string) {
|
func NextPageLimit(m *ice.Message, total string, arg ...string) {
|
||||||
if kit.Int(kit.Select("0", arg, 1)) < 0 {
|
if kit.Int(kit.Select("0", arg, 1)) < 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user