diff --git a/msg.go b/msg.go index df42619..fffadde 100644 --- a/msg.go +++ b/msg.go @@ -100,6 +100,8 @@ func parseSubTypeMessageAlchStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha cwm := ChatWarsMessageStockAnyAck{} items := []ChatWarsItems{} + log.Printf("parseSubTypeMessageAlchStockAck : Start\n") + 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) { 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.Msg = m return &cwm, nil