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 {
|
||||
return
|
||||
}
|
||||
if len(arg) == 1 {
|
||||
arg = kit.Split(arg[0])
|
||||
}
|
||||
_daemon_exec(m, _system_cmd(m, arg...))
|
||||
}},
|
||||
}})
|
||||
|
@ -107,7 +107,11 @@ func PrevPage(m *ice.Message, total string, arg ...string) {
|
||||
m.ProcessHold()
|
||||
return
|
||||
}
|
||||
m.ProcessRewrite("offend", offends)
|
||||
if offends == 0 {
|
||||
m.ProcessRewrite("offend", "")
|
||||
} else {
|
||||
m.ProcessRewrite("offend", offends)
|
||||
}
|
||||
|
||||
}
|
||||
func NextPage(m *ice.Message, total string, arg ...string) {
|
||||
@ -118,7 +122,11 @@ func NextPage(m *ice.Message, total string, arg ...string) {
|
||||
m.ProcessHold()
|
||||
return
|
||||
}
|
||||
m.ProcessRewrite("offend", offends)
|
||||
if offends == 0 {
|
||||
m.ProcessRewrite("offend", "")
|
||||
} else {
|
||||
m.ProcessRewrite("offend", offends)
|
||||
}
|
||||
}
|
||||
func NextPageLimit(m *ice.Message, total string, arg ...string) {
|
||||
if kit.Int(kit.Select("0", arg, 1)) < 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user