This commit is contained in:
shoopea 2020-10-18 11:45:15 +02:00
parent f705bb048b
commit 539372a3a6

2
msg.go
View File

@ -483,7 +483,7 @@ 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)
m.Level = i m.Level = int(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) cwm.Members = append(cwm.Members, m)