This commit is contained in:
shoopea 2020-06-28 11:38:01 +02:00
parent b399348c99
commit c3b8a24dbe

14
msg.go
View File

@ -375,6 +375,20 @@ func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
Quantity: 1,
Quality: l[2],
}
switch l[2] {
case ``:
item.Quality = `a`
case ``:
item.Quality = `b`
case ``:
item.Quality = `c`
case ``:
item.Quality = `d`
case ``:
item.Quality = `e`
default:
item.Quality = ``
}
log.Printf("Item : %s - %s : %s\n", item.Code, item.Name, item.Quality)
stock = append(stock, item)
}