diff --git a/msg.go b/msg.go index 2ec047c..b990881 100644 --- a/msg.go +++ b/msg.go @@ -222,18 +222,20 @@ func parseSubTypeMessageAuctionAnnounce(m *ChatWarsMessage, r *regexp.Regexp) (* func parseSubTypeMessageWithdrawRcv(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageWithdrawRcv, error) { cwm := ChatWarsMessageWithdrawRcv{} items := []ChatWarsItems{} - re := regexp.MustCompile(`(.*) x (.*)`) - for _, l := range re.FindAllStringSubmatch(m.Text, -1) { - i := getObjItemID(``, l[1]) - q, _ := strconv.ParseInt(l[2], 10, 64) - if i != 0 { - item := ChatWarsItems{ - ItemID64: i, - Quantity: q, + /* + re := regexp.MustCompile(`(.*) x (.*)`) + for _, l := range re.FindAllStringSubmatch(m.Text, -1) { + i := getObjItemID(``, l[1]) + q, _ := strconv.ParseInt(l[2], 10, 64) + if i != 0 { + item := ChatWarsItems{ + ItemID64: i, + Quantity: q, + } + items = append(items, item) } - items = append(items, item) } - } + */ cwm.ItemList = items return &cwm, nil }