mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
5e5fa5e764
commit
d76b7064d4
@ -47,6 +47,9 @@ Volcanos("misc", {help: "通信协议", Message: function(event, can) { var msg
|
|||||||
Copy: function(res) { if (!res) { return msg }
|
Copy: function(res) { if (!res) { return msg }
|
||||||
res.result && (msg.result = (msg.result||[]).concat(res.result))
|
res.result && (msg.result = (msg.result||[]).concat(res.result))
|
||||||
res.append && (msg.append = res.append) && res.append.forEach(function(item) {
|
res.append && (msg.append = res.append) && res.append.forEach(function(item) {
|
||||||
|
var i = msg.option && msg.option.indexOf(item); if (i > -1) {
|
||||||
|
msg.option[i] = "", delete(msg[item])
|
||||||
|
}
|
||||||
res[item] && (msg[item] = (msg[item]||[]).concat(res[item]))
|
res[item] && (msg[item] = (msg[item]||[]).concat(res[item]))
|
||||||
})
|
})
|
||||||
res.option && (msg.option = res.option) && res.option.forEach(function(item) {
|
res.option && (msg.option = res.option) && res.option.forEach(function(item) {
|
||||||
|
@ -85,7 +85,7 @@ Volcanos("onaction", {help: "交互操作", list: [cli.CLEAR, cli.CLOSE, cli.DON
|
|||||||
plugin: function(event, can, index) { var line = can.list[index]
|
plugin: function(event, can, index) { var line = can.list[index]
|
||||||
if (can.base.isFunc(line.text)) { return can.onmotion.hide(can), line.text(event) }
|
if (can.base.isFunc(line.text)) { return can.onmotion.hide(can), line.text(event) }
|
||||||
|
|
||||||
var cmd = line.cmd == "command"? can.core.Keys(line.text, line.name): can.core.Keys(line.ctx, line.cmd)
|
var cmd = line.cmd == "command"? can.core.Keys(line.type, line.name.split(" ")[0]): can.core.Keys(line.ctx, line.cmd)
|
||||||
can.onappend.plugin(can, {type: chat.PLUGIN, index: cmd||msg.Option(kit.MDB_INDEX)}, function(sub, meta) {
|
can.onappend.plugin(can, {type: chat.PLUGIN, index: cmd||msg.Option(kit.MDB_INDEX)}, function(sub, meta) {
|
||||||
can.search({}, "Action.onexport.size", function(msg, width) { sub.Conf(chat.WIDTH, width-60) })
|
can.search({}, "Action.onexport.size", function(msg, width) { sub.Conf(chat.WIDTH, width-60) })
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user