test war report

This commit is contained in:
shoopea 2020-02-09 16:03:32 +08:00
parent e05232e4c9
commit 84dae082fe

2
msg.go
View File

@ -177,8 +177,10 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
cwm := ChatWarsMessageReportAck{}
re := regexp.MustCompile(`([.^\n]*)\n`)
for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) {
if len(l[1]) > 0 {
log.Printf("parseSubTypeMessageReport : Extra[%d] : %d => %s\n", i, len(l[1]), l[1])
}
}
/*
log.Printf("parseSubTypeMessageReport : War report identified\n")