mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt some
This commit is contained in:
parent
f003a6b8da
commit
3eadc753ab
@ -18,6 +18,9 @@ func _header_users(m *ice.Message, key string, arg ...string) {
|
|||||||
m.Cmdy(aaa.USER, mdb.MODIFY, aaa.USERNAME, m.Option(ice.MSG_USERNAME), key, m.Option(key, arg[0]))
|
m.Cmdy(aaa.USER, mdb.MODIFY, aaa.USERNAME, m.Option(ice.MSG_USERNAME), key, m.Option(key, arg[0]))
|
||||||
}
|
}
|
||||||
func _header_share(m *ice.Message, arg ...string) {
|
func _header_share(m *ice.Message, arg ...string) {
|
||||||
|
for i := 0; i < len(arg)-1; i += 2 {
|
||||||
|
m.Option(arg[i], arg[i+1])
|
||||||
|
}
|
||||||
if m.Option(mdb.LINK) == "" {
|
if m.Option(mdb.LINK) == "" {
|
||||||
m.Cmdy(web.SHARE, mdb.CREATE, mdb.TYPE, web.LOGIN, arg)
|
m.Cmdy(web.SHARE, mdb.CREATE, mdb.TYPE, web.LOGIN, arg)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user