test war report
This commit is contained in:
parent
730678f0d4
commit
f6a3f05ff9
7
msg.go
7
msg.go
@ -175,10 +175,11 @@ func parseSubTypeMessageStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
|
||||
|
||||
func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageReportAck, error) {
|
||||
cwm := ChatWarsMessageReportAck{}
|
||||
extra := r.ReplaceAllString(m.Text, "${Extra}")
|
||||
if len(extra) > 0 {
|
||||
log.Printf("parseSubTypeMessageReport : Extra : %s\n", extra)
|
||||
re := regexp.MustCompile(`[.^\n]*\n`)
|
||||
for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) {
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : %s\n", i, l[0])
|
||||
}
|
||||
|
||||
/*
|
||||
log.Printf("parseSubTypeMessageReport : War report identified\n")
|
||||
log.Printf("parseSubTypeMessageReport : Castle : %s\n", r.ReplaceAllString(m.Text, "${Castle}"))
|
||||
|
Loading…
Reference in New Issue
Block a user