forked from x/icebergs
add some
This commit is contained in:
parent
eab3c6c447
commit
ec4cc2b660
@ -263,6 +263,8 @@ const (
|
||||
FULL = "full"
|
||||
LINK = "link"
|
||||
MERGE = "merge"
|
||||
|
||||
QS = "?"
|
||||
)
|
||||
const SPIDE = "spide"
|
||||
|
||||
|
@ -97,7 +97,7 @@ func (s Client) List(m *ice.Message, arg ...string) {
|
||||
func init() { ice.ChatCtxCmd(Client{}) }
|
||||
|
||||
func (s Client) RedirectURI(m *ice.Message) string {
|
||||
return strings.Split(web.MergeURL2(m, web.ChatCmdPath(m.Message, m.PrefixKey(), ctx.ACTION, aaa.LOGIN)), "?")[0]
|
||||
return strings.Split(web.MergeURL2(m, web.ChatCmdPath(m.Message, m.PrefixKey(), ctx.ACTION, aaa.LOGIN)), web.QS)[0]
|
||||
}
|
||||
func (s Client) Login(m *ice.Message, arg ...string) {
|
||||
if state, code := m.Option(STATE), m.Option(CODE); !m.Warn(state == "" || code == "") {
|
||||
|
@ -59,7 +59,7 @@ func init() {
|
||||
})
|
||||
m.PushAction(mdb.DELETE)
|
||||
}},
|
||||
mdb.DELETE: {Name: "delete", Help: "删除", Hand: func(m *ice.Message, arg ...string) {
|
||||
mdb.DELETE: {Help: "删除", Hand: func(m *ice.Message, arg ...string) {
|
||||
mdb.HashSelect(m, m.Option(mdb.HASH))
|
||||
web.SpideDelete(_oauth_header(m), API_GITHUB+"user/keys/"+m.Option(mdb.ID))
|
||||
}},
|
||||
|
Loading…
x
Reference in New Issue
Block a user