This commit is contained in:
shoopea 2020-10-18 11:44:36 +02:00
parent 7fdde860a4
commit f705bb048b

3
msg.go
View File

@ -483,9 +483,10 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
m.Class2 = re.ReplaceAllString(l, "${Class2}") m.Class2 = re.ReplaceAllString(l, "${Class2}")
m.Status = re.ReplaceAllString(l, "${Status}") m.Status = re.ReplaceAllString(l, "${Status}")
i, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Level}"), 10, 64) i, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Level}"), 10, 64)
cwm.Level = i m.Level = i
log.Printf("parseSubTypeMessageGListAck : %s : %s/%s [%d] => %s\n", m.Name, m.Class1, m.Class2, m.Level, m.Status) log.Printf("parseSubTypeMessageGListAck : %s : %s/%s [%d] => %s\n", m.Name, m.Class1, m.Class2, m.Level, m.Status)
//log.Printf("parseSubTypeMessageGListAck : %s\n", l) //log.Printf("parseSubTypeMessageGListAck : %s\n", l)
cwm.Members = append(cwm.Members, m)
} }
return &cwm, nil return &cwm, nil