debug
This commit is contained in:
parent
2c707271ef
commit
38ba03b793
4
msg.go
4
msg.go
@ -100,6 +100,8 @@ func parseSubTypeMessageAlchStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
|
|||||||
cwm := ChatWarsMessageStockAnyAck{}
|
cwm := ChatWarsMessageStockAnyAck{}
|
||||||
items := []ChatWarsItems{}
|
items := []ChatWarsItems{}
|
||||||
|
|
||||||
|
log.Printf("parseSubTypeMessageAlchStockAck : Start\n")
|
||||||
|
|
||||||
re := regexp.MustCompile(`\n\/aa_([0-9]{2}) ([a-zA-Z ']+) x (?[0-9]+)`)
|
re := regexp.MustCompile(`\n\/aa_([0-9]{2}) ([a-zA-Z ']+) x (?[0-9]+)`)
|
||||||
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stuff}"), -1) {
|
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stuff}"), -1) {
|
||||||
log.Printf("parseSubTypeMessageAlchStockAck : %+q\n", l)
|
log.Printf("parseSubTypeMessageAlchStockAck : %+q\n", l)
|
||||||
@ -115,6 +117,8 @@ func parseSubTypeMessageAlchStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("parseSubTypeMessageAlchStockAck : Done\n")
|
||||||
|
|
||||||
cwm.Stock = items
|
cwm.Stock = items
|
||||||
cwm.Msg = m
|
cwm.Msg = m
|
||||||
return &cwm, nil
|
return &cwm, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user