test
This commit is contained in:
parent
835afa709f
commit
3c65b9492a
2
msg.go
2
msg.go
@ -33,7 +33,7 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
||||
func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageStock, error) {
|
||||
cwm := ChatWarsMessageStock{}
|
||||
log.Printf("parseSubTypeMessageReport : GStock Any Ack identified\n")
|
||||
re := regex.MustCompile(`(\\n[0-9a-z]+ .* x [0-9]+)`)
|
||||
re := regexp.MustCompile(`(\\n[0-9a-z]+ .* x [0-9]+)`)
|
||||
for s := range re.FindAllString(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
|
||||
log.Printf("parseSubTypeMessageGStockAnyAck : %s\n", s)
|
||||
}
|
||||
|
@ -122,7 +122,6 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
||||
case objSubTypeMessageGStockAnyAck:
|
||||
cwm, err := parseSubTypeMessageGStockAnyAck(m, r)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Parsing objSubTypeMessageGStockAnyAck.")
|
||||
cwm.ObjID64 = objId
|
||||
case objSubTypeMessageReportAck:
|
||||
cwm, err := parseSubTypeMessageReportAck(m, r)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Parsing objSubTypeMessageReportAck.")
|
||||
|
Loading…
Reference in New Issue
Block a user