test
This commit is contained in:
parent
0e21b49707
commit
ffb967d9a7
6
msg.go
6
msg.go
@ -289,9 +289,11 @@ func parseSubTypeMessageTributesStatsAck(m *ChatWarsMessage, r *regexp.Regexp) (
|
||||
log.Printf("parseSubTypeMessageTributesStatsAck : Date : %s => %v\n", re.ReplaceAllString(l[0], "${Date}"), tribute.Date)
|
||||
tribute.ItemID64 = getSilentObjItemID(``, re.ReplaceAllString(l[0], "${Item}"))
|
||||
log.Printf("parseSubTypeMessageTributesStatsAck : Item : %s => %d\n", re.ReplaceAllString(l[0], "${Item}"), tribute.ItemID64)
|
||||
tribute.Quantity, _ = strconv.ParseInt(r.ReplaceAllString(l[0], "${Quantity}"), 10, 64)
|
||||
tribute.Quantity, err = strconv.ParseInt(r.ReplaceAllString(l[0], "${Quantity}"), 10, 64)
|
||||
logOnError(err, "parseSubTypeMessageTributesStatsAck : ParseInt")
|
||||
log.Printf("parseSubTypeMessageTributesStatsAck : Quantity : %s => %d\n", re.ReplaceAllString(l[0], "${Quantity}"), tribute.Quantity)
|
||||
tribute.Exp, _ = strconv.ParseInt(r.ReplaceAllString(l[0], "${Exp}"), 10, 64)
|
||||
tribute.Exp, err = strconv.ParseInt(r.ReplaceAllString(l[0], "${Exp}"), 10, 64)
|
||||
logOnError(err, "parseSubTypeMessageTributesStatsAck : ParseInt")
|
||||
log.Printf("parseSubTypeMessageTributesStatsAck : Exp : %s => %d \n", re.ReplaceAllString(l[0], "${Exp}"), tribute.Exp)
|
||||
cwm.Tributes = append(tributes, tribute)
|
||||
log.Printf("parseSubTypeMessageTributesStatsAck : #%d / #%d : %d + %d (%v)\n", cwm.Msg.TGUserID64, tribute.ItemID64, tribute.Quantity, tribute.Exp, tribute.Date)
|
||||
|
Loading…
Reference in New Issue
Block a user