fix
This commit is contained in:
parent
391eaa8394
commit
739b00be0d
4
msg.go
4
msg.go
@ -356,7 +356,9 @@ func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
|
|||||||
Name: l[2],
|
Name: l[2],
|
||||||
ItemID64: i,
|
ItemID64: i,
|
||||||
Quantity: q,
|
Quantity: q,
|
||||||
Quality: rq.ReplaceAllString(l[1], "${Quality}"),
|
}
|
||||||
|
if rq.MatchString(l[1]) {
|
||||||
|
item.Quality = rq.ReplaceAllString(l[1], "${Quality}")
|
||||||
}
|
}
|
||||||
log.Printf("Item : %s - %s : %s\n", item.Code, item.Name, item.Quality)
|
log.Printf("Item : %s - %s : %s\n", item.Code, item.Name, item.Quality)
|
||||||
stock = append(stock, item)
|
stock = append(stock, item)
|
||||||
|
Loading…
Reference in New Issue
Block a user